diff --git a/src/stores/modalStore.js b/src/stores/modalStore.js index 678dc6bb6..3fc3e734e 100644 --- a/src/stores/modalStore.js +++ b/src/stores/modalStore.js @@ -137,9 +137,9 @@ export const useModalStore = defineStore('modal', () => { // to trigger handler modalClose explicitelly if ( triggerLegacyCloseHandler && - modalToClose.value?.props?.options?.modalHandler + modalToClose.value?.props?.legacyOptions?.modalHandler ) { - modalToClose.value?.props?.options?.modalHandler.modalClose(); + modalToClose.value?.props?.legacyOptions?.modalHandler.modalClose(); } }