Skip to content

Commit 241e46a

Browse files
authored
Merge pull request ceph#54148 from ivoalmeida/fix-edit-user-bucket-quota
mgr/dashboard: fixed edit user quota form error Reviewed-by: Ankush Behl <[email protected]>
2 parents c672d7a + 1a281cc commit 241e46a

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)