Skip to content

Commit baa64b2

Browse files
committed
fix(arc-saas): fix of edit plan page
fix of edit plan page GH-64
1 parent 15916f3 commit baa64b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

projects/saas-ui/src/app/main/components/add-plan/add-plan.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ export class AddPlanComponent implements OnInit {
336336
domainData.price = parseFloat(domainData.price);
337337

338338
const featuresGroup = this.addPlanForm.get('features') as FormGroup;
339-
340339
const selectedFeatures = featuresGroup
340+
341341
? Object.keys(featuresGroup.controls)
342342
.filter(
343343
key =>
@@ -346,7 +346,7 @@ export class AddPlanComponent implements OnInit {
346346
)
347347
.reduce(
348348
(acc, key) => {
349-
const feature = this.featureValue.find(
349+
const feature = this.featureValue.features.find(
350350
f => (f as any).key === key,
351351
);
352352
if (feature) {
@@ -383,7 +383,7 @@ export class AddPlanComponent implements OnInit {
383383
selectedFeatures,
384384
)
385385
.map(key => {
386-
const feature = this.featureValue.find(f => f.id === key);
386+
const feature = this.featureValue.features.find(f => f.id === key);
387387
console.log(feature);
388388
return {
389389
id: selectedFeatures[key].id,

0 commit comments

Comments
 (0)