From bafe9a8a6482ac45fbeaeaef7713356f6a76d4e5 Mon Sep 17 00:00:00 2001 From: Lera24 Date: Mon, 29 Jan 2024 17:37:12 +0200 Subject: [PATCH] fix:input param in useCheckingUnsavedChanges[WTEL-3904] --- src/app/composables/useCheckingUnsavedChanges.js | 4 +--- .../routing/modules/flow/components/opened-flow.vue | 8 ++++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/app/composables/useCheckingUnsavedChanges.js b/src/app/composables/useCheckingUnsavedChanges.js index 416b7deca..a04f93934 100644 --- a/src/app/composables/useCheckingUnsavedChanges.js +++ b/src/app/composables/useCheckingUnsavedChanges.js @@ -3,9 +3,7 @@ import { useStore } from 'vuex'; import getNamespacedState from '@webitel/ui-sdk/src/store/helpers/getNamespacedState'; -export const useCheckingUnsavedChanges = (namespace) => { - const store = useStore(); - const itemInstance = computed(() => getNamespacedState(store.state, namespace).itemInstance); +export const useCheckingUnsavedChanges = (itemInstance) => { const isConfirmationUnsavedChangesPopup = ref(false); function showConfirmationPopup(e) { diff --git a/src/modules/routing/modules/flow/components/opened-flow.vue b/src/modules/routing/modules/flow/components/opened-flow.vue index 7b01ff1c2..3351ad80f 100644 --- a/src/modules/routing/modules/flow/components/opened-flow.vue +++ b/src/modules/routing/modules/flow/components/opened-flow.vue @@ -58,11 +58,13 @@