onclose fix

This commit is contained in:
Lone Iversen
2022-10-07 11:09:49 +02:00
parent c3bdd90944
commit b5f342b51b

View File

@@ -108,7 +108,7 @@ export class UmbDashboardPublishedStatusElement extends UmbContextConsumerMixin(
color: 'danger',
confirmLabel: 'Continue',
});
modalHandler?.onClose.then(({ confirmed }: any) => {
modalHandler?.onClose().then(({ confirmed }: any) => {
if (confirmed) this._reloadMemoryCache();
});
}
@@ -135,7 +135,7 @@ export class UmbDashboardPublishedStatusElement extends UmbContextConsumerMixin(
color: 'danger',
confirmLabel: 'Continue',
});
modalHandler?.onClose.then(({ confirmed }: any) => {
modalHandler?.onClose().then(({ confirmed }: any) => {
if (confirmed) this._rebuildDatabaseCache();
});
}