add null check
This commit is contained in:
@@ -16,7 +16,9 @@ export default class UmbLogViewerSaveSearchModalElement extends UmbModalBaseElem
|
||||
}
|
||||
|
||||
private _handleSubmit() {
|
||||
this.value = { name: this._input.value as string, query: this.data?.query };
|
||||
if (!this.data?.query) return;
|
||||
|
||||
this.value = { name: this._input.value as string, query: this.data.query };
|
||||
this.modalContext?.submit();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user