Skip to content

Commit e250a02

Browse files
committed
fix: amend close to call closeCallback instead
1 parent c6d9cbc commit e250a02

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/modals/MediaDbPreviewModal.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,8 @@ export class MediaDbPreviewModal extends Modal {
7575
onOpen(): void {
7676
this.preview();
7777
}
78+
79+
onClose(): void {
80+
this.closeCallback();
81+
}
7882
}

src/utils/ModalHelper.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,6 @@ export class ModalHelper {
398398
}
399399

400400
if (previewModalResult.code === ModalResultCode.CLOSE) {
401-
previewModal.close();
402401
return undefined;
403402
}
404403

0 commit comments

Comments
 (0)