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 {
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 ,
You can’t perform that action at this time.
0 commit comments