fix: amend close to call closeCallback instead

This commit is contained in:
AB1908 2022-10-13 15:59:27 +05:30
parent c6d9cbc369
commit e250a02f99
No known key found for this signature in database
GPG key ID: A1DCD49686611B33
2 changed files with 4 additions and 1 deletions

View file

@ -75,4 +75,8 @@ export class MediaDbPreviewModal extends Modal {
onOpen(): void {
this.preview();
}
onClose(): void {
this.closeCallback();
}
}

View file

@ -398,7 +398,6 @@ export class ModalHelper {
}
if (previewModalResult.code === ModalResultCode.CLOSE) {
previewModal.close();
return undefined;
}