From 11d5db34078042081c7b16690fc942dc0d16c176 Mon Sep 17 00:00:00 2001 From: Mathis Marcotte Date: Tue, 31 Oct 2023 15:32:27 +0000 Subject: [PATCH 1/2] fixed prob checkbox bug --- .../form-protected-b/form-protected-b.component.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/frontend/jupyter/src/app/pages/form/form-new/form-protected-b/form-protected-b.component.ts b/frontend/jupyter/src/app/pages/form/form-new/form-protected-b/form-protected-b.component.ts index 19076d4b..460bb0b1 100755 --- a/frontend/jupyter/src/app/pages/form/form-new/form-protected-b/form-protected-b.component.ts +++ b/frontend/jupyter/src/app/pages/form/form-new/form-protected-b/form-protected-b.component.ts @@ -22,12 +22,14 @@ export class FormProtectedBComponent implements OnInit { .updateValueAndValidity(); }, ); - this.parentForm - .get('workspace') - .get('existingSource') - .get('persistentVolumeClaim') - .get('claimName') - .updateValueAndValidity(); + if(this.parentForm.get('workspace').get('existingSource')){ + this.parentForm + .get('workspace') + .get('existingSource') + .get('persistentVolumeClaim') + .get('claimName') + .updateValueAndValidity(); + } }); } } From ccc19473a11b7e632d22d8ea94e03c64ae3ad9a6 Mon Sep 17 00:00:00 2001 From: Mathis Marcotte Date: Wed, 1 Nov 2023 18:14:46 +0000 Subject: [PATCH 2/2] fix format --- .../form-new/form-protected-b/form-protected-b.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/jupyter/src/app/pages/form/form-new/form-protected-b/form-protected-b.component.ts b/frontend/jupyter/src/app/pages/form/form-new/form-protected-b/form-protected-b.component.ts index 460bb0b1..8747e8f5 100755 --- a/frontend/jupyter/src/app/pages/form/form-new/form-protected-b/form-protected-b.component.ts +++ b/frontend/jupyter/src/app/pages/form/form-new/form-protected-b/form-protected-b.component.ts @@ -22,14 +22,14 @@ export class FormProtectedBComponent implements OnInit { .updateValueAndValidity(); }, ); - if(this.parentForm.get('workspace').get('existingSource')){ - this.parentForm + if (this.parentForm.get('workspace').get('existingSource')) { + this.parentForm .get('workspace') .get('existingSource') .get('persistentVolumeClaim') .get('claimName') .updateValueAndValidity(); - } + } }); } }