From 9cbb66cb47c31ff516c8ea89f11551022b2aa4bb Mon Sep 17 00:00:00 2001 From: saffaalvi Date: Wed, 16 Sep 2020 13:53:32 -0400 Subject: [PATCH] fix: Gi for RAM not optional --- .../src/app/resource-form/form-specs/form-specs.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/resource-form/form-specs/form-specs.component.ts b/frontend/src/app/resource-form/form-specs/form-specs.component.ts index d956e792..6a1c78ed 100644 --- a/frontend/src/app/resource-form/form-specs/form-specs.component.ts +++ b/frontend/src/app/resource-form/form-specs/form-specs.component.ts @@ -59,7 +59,7 @@ export class FormSpecsComponent implements OnInit { .get("memory") .setValidators([ Validators.required, - Validators.pattern(/^[0-9]+([.][0-9]+)?(Gi)?$/), + Validators.pattern(/^[0-9]+([.][0-9]+)?(Gi)$/), Validators.min(1) ]); this.parentForm.setValidators(resourcesValidator());