From 35cef37d4f31f09e975e1ac023a9a666cfa282d9 Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 13 Dec 2024 08:04:05 +0100 Subject: [PATCH 1/7] fix: refs #8201 use arrayData to fix the error --- src/pages/Supplier/Card/SupplierDescriptor.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pages/Supplier/Card/SupplierDescriptor.vue b/src/pages/Supplier/Card/SupplierDescriptor.vue index 28cfe49ce..9d469bcc1 100644 --- a/src/pages/Supplier/Card/SupplierDescriptor.vue +++ b/src/pages/Supplier/Card/SupplierDescriptor.vue @@ -9,7 +9,7 @@ import VnLv from 'src/components/ui/VnLv.vue'; import { toDateString } from 'src/filters'; import useCardDescription from 'src/composables/useCardDescription'; import { getUrl } from 'src/composables/getUrl'; -import { useState } from 'src/composables/useState'; +import { useArrayData } from 'src/composables/useArrayData'; const $props = defineProps({ id: { @@ -26,7 +26,7 @@ const $props = defineProps({ const route = useRoute(); const { t } = useI18n(); const url = ref(); -const state = useState(); +const arrayData = useArrayData(); const filter = { fields: [ @@ -77,7 +77,7 @@ const setData = (entity) => { data.value = useCardDescription(entity.ref, entity.id); }; -const supplier = computed(() => state.get('supplier')); +const supplier = computed(() => arrayData.store.data); const getEntryQueryParams = (supplier) => { if (!supplier) return null; @@ -127,6 +127,7 @@ const getEntryQueryParams = (supplier) => {