Quellcode durchsuchen

Merge branch 'feature-general_fixes' of onunez/frontend-inversiones into development

Oscar José Nuñez Chávez vor 5 Jahren
Ursprung
Commit
90bd3157e7

+ 1 - 1
src/app/components/investment-proposals/change-history/change-history.component.ts

@@ -52,7 +52,7 @@ export class ChangeHistoryComponent implements OnInit {
     this.formData.instrumentos;
 
     this.indexDynamicComponent = this.ads.findIndex(
-      x => x.component.name == this.formData.instrumentos
+      x => x.data.key == this.formData.instrumentos
     );
     if (this.indexDynamicComponent >= 0) {
       this.loadComponent();

+ 1 - 1
src/app/components/investment-proposals/instrument-work/instrument-work.component.ts

@@ -55,7 +55,7 @@ export class InstrumentWorkComponent implements OnInit {
     this.formData = this.formDataService.getFormData();
     this.formData.instrumentos;
     this.indexDynamicComponent = this.ads.findIndex(
-      x => x.component.name == this.formData.instrumentos
+      x => x.data.key == this.formData.instrumentos
     );
     if (this.indexDynamicComponent >= 0) {
       this.loadComponent();

+ 1 - 1
src/app/components/investment-proposals/proposal-detail/proposal-detail.component.ts

@@ -178,7 +178,7 @@ export class InvestmentProposalDetailComponent implements OnInit {
           this.formData.instrumentos;
 
           this.indexDynamicComponent = this.ads.findIndex(
-            x => x.component.name == this.formData.instrumentos
+            x => x.data.key == this.formData.instrumentos
           );
           if (this.indexDynamicComponent >= 0) {
             this.loadComponent();

+ 1 - 1
src/app/components/investment-proposals/result/result.component.ts

@@ -107,7 +107,7 @@ export class ResultComponent implements OnInit {
 
     this.formData.instrumentos;
     this.indexDynamicComponent = this.ads.findIndex(
-      x => x.component.name == this.formData.instrumentos
+      x => x.data.key == this.formData.instrumentos
     );
     if (this.indexDynamicComponent >= 0) {
       this.loadComponent();

+ 1 - 1
src/app/components/investment-proposals/review/review.component.ts

@@ -178,7 +178,7 @@ export class InvestmentProposalReviewComponent implements OnInit {
           this.formData.instrumentos;
 
           this.indexDynamicComponent = this.ads.findIndex(
-            x => x.component.name == this.formData.instrumentos
+            x => x.data.key == this.formData.instrumentos
           );
           if (this.indexDynamicComponent >= 0) {
             this.loadComponent();