Skip to content

Commit 1a281cc

Browse files
committed
mgr/dashboard: fixed edit user quota form error
Fixes: https://tracker.ceph.com/issues/63287 Signed-off-by: Ivo Almeida <[email protected]>
1 parent c672d7a commit 1a281cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pybind/mgr/dashboard/frontend/src/app/shared/forms/cd-form-group.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class CdFormGroup extends UntypedFormGroup {
6868
showError(controlName: string, form: NgForm, errorName?: string): boolean {
6969
const control = this.get(controlName);
7070
return (
71-
(form.submitted || control.dirty) &&
71+
(form?.submitted || control.dirty) &&
7272
(errorName ? control.hasError(errorName) : control.invalid)
7373
);
7474
}

0 commit comments

Comments
 (0)