fix: amend close to call closeCallback instead
This commit is contained in:
parent
c6d9cbc369
commit
e250a02f99
2 changed files with 4 additions and 1 deletions
|
|
@ -75,4 +75,8 @@ export class MediaDbPreviewModal extends Modal {
|
|||
onOpen(): void {
|
||||
this.preview();
|
||||
}
|
||||
|
||||
onClose(): void {
|
||||
this.closeCallback();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -398,7 +398,6 @@ export class ModalHelper {
|
|||
}
|
||||
|
||||
if (previewModalResult.code === ModalResultCode.CLOSE) {
|
||||
previewModal.close();
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue