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 {
178178 break ;
179179 case 'number' :
180180 control = new FormControl (
181- feature . defaultValue ,
181+ feature . defaultValue || 0 ,
182182 Validators . pattern ( / [ 0 - 9 ] / ) ,
183183 ) ;
184184 break ;
@@ -264,7 +264,7 @@ export class AddPlanComponent implements OnInit {
264264 ) ;
265265 if ( feature ) {
266266 acc [ feature . id ] = {
267- id : ( feature . value as any ) . id ,
267+ id : ( feature . value as any ) ? .id ,
268268 value : featuresGroup . get ( key ) ?. value ,
269269 } ;
270270 }
@@ -317,6 +317,7 @@ export class AddPlanComponent implements OnInit {
317317 console . error ( 'Form is invalid' ) ;
318318 }
319319 }
320+
320321 onTierChange ( selectedTier : string ) : void {
321322 this . showStorageSize =
322323 selectedTier === 'STANDARD' || selectedTier === 'PREMIUM' ;
You can’t perform that action at this time.
0 commit comments