File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
projects/saas-ui/src/app/main/components/add-plan Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ export class AddPlanComponent implements OnInit {
178
178
break ;
179
179
case 'number' :
180
180
control = new FormControl (
181
- feature . defaultValue ,
181
+ feature . defaultValue || 0 ,
182
182
Validators . pattern ( / [ 0 - 9 ] / ) ,
183
183
) ;
184
184
break ;
@@ -264,7 +264,7 @@ export class AddPlanComponent implements OnInit {
264
264
) ;
265
265
if ( feature ) {
266
266
acc [ feature . id ] = {
267
- id : ( feature . value as any ) . id ,
267
+ id : ( feature . value as any ) ? .id ,
268
268
value : featuresGroup . get ( key ) ?. value ,
269
269
} ;
270
270
}
@@ -317,6 +317,7 @@ export class AddPlanComponent implements OnInit {
317
317
console . error ( 'Form is invalid' ) ;
318
318
}
319
319
}
320
+
320
321
onTierChange ( selectedTier : string ) : void {
321
322
this . showStorageSize =
322
323
selectedTier === 'STANDARD' || selectedTier === 'PREMIUM' ;
You can’t perform that action at this time.
0 commit comments