From c58147b63a9aa6819383c6d7a1343e5c6b40245a Mon Sep 17 00:00:00 2001 From: Nico Hoffmann Date: Sun, 9 Jun 2024 00:13:07 +0200 Subject: [PATCH] Fix dialog submit store dispatch action --- panel/src/panel/modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panel/src/panel/modal.js b/panel/src/panel/modal.js index b28485d409..e2c97be2a7 100644 --- a/panel/src/panel/modal.js +++ b/panel/src/panel/modal.js @@ -234,7 +234,7 @@ export default (panel, key, defaults) => { for (const event in state.dispatch) { const payload = state.dispatch[event]; - panel.app.$store.dispatch( + panel.app.config.globalProperties.$store.dispatch( event, Array.isArray(payload) === true ? [...payload] : payload );