add null check for reason
This commit is contained in:
@@ -63,7 +63,7 @@ export class UmbUserCreateModalElement extends UmbModalBaseElement {
|
||||
});
|
||||
|
||||
modalContext?.onSubmit().catch((reason) => {
|
||||
if (reason.type === 'createAnotherUser') {
|
||||
if (reason?.type === 'createAnotherUser') {
|
||||
this._form?.reset();
|
||||
} else {
|
||||
this.#closeModal();
|
||||
|
||||
Reference in New Issue
Block a user