File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
projects/saas-ui/src/app/main/components/add-plan Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -336,8 +336,8 @@ export class AddPlanComponent implements OnInit {
336
336
domainData . price = parseFloat ( domainData . price ) ;
337
337
338
338
const featuresGroup = this . addPlanForm . get ( 'features' ) as FormGroup ;
339
-
340
339
const selectedFeatures = featuresGroup
340
+
341
341
? Object . keys ( featuresGroup . controls )
342
342
. filter (
343
343
key =>
@@ -346,7 +346,7 @@ export class AddPlanComponent implements OnInit {
346
346
)
347
347
. reduce (
348
348
( acc , key ) => {
349
- const feature = this . featureValue . find (
349
+ const feature = this . featureValue . features . find (
350
350
f => ( f as any ) . key === key ,
351
351
) ;
352
352
if ( feature ) {
@@ -383,7 +383,7 @@ export class AddPlanComponent implements OnInit {
383
383
selectedFeatures ,
384
384
)
385
385
. map ( key => {
386
- const feature = this . featureValue . find ( f => f . id === key ) ;
386
+ const feature = this . featureValue . features . find ( f => f . id === key ) ;
387
387
console . log ( feature ) ;
388
388
return {
389
389
id : selectedFeatures [ key ] . id ,
You can’t perform that action at this time.
0 commit comments