Skip to content

Commit 20c204f

Browse files
committed
fix(arc-saas): update features
update features
1 parent 7d8dc9e commit 20c204f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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';

0 commit comments

Comments
 (0)