angular-generate 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angular-generate",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "Générateur de composant et code Angular à partir du fichier de configuration config.json",
5
5
  "scripts": {
6
6
  "build": "tsc -p tsconfig.json",
@@ -114,7 +114,7 @@ export class ${componentName_class}Component implements OnInit, OnDestroy {
114
114
  if (reponse && reponse.success) {
115
115
  console.log("Opération effectuée avec succés sur la table login. Réponse= ", reponse);
116
116
  this.onReset_login_login();
117
- await this.api.save_on_local_storage("token", reponse);
117
+ await this.api.save_on_local_storage("token", reponse.data);
118
118
 
119
119
  await this.api.update_data_from_token();
120
120
  this.api.Swal_success(reponse.message || "Opération éffectuée avec succés");