From 58d2c21e5bf4f014e8a8d42a6096c919892cc777 Mon Sep 17 00:00:00 2001 From: jorgep Date: Mon, 13 Jan 2025 16:28:35 +0100 Subject: [PATCH] fix: refs #6919 use same data-key --- src/pages/Order/Card/OrderCatalogItemDialog.vue | 4 ++-- src/pages/Order/Card/OrderLines.vue | 2 +- src/pages/Order/Card/OrderSummary.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/Order/Card/OrderCatalogItemDialog.vue b/src/pages/Order/Card/OrderCatalogItemDialog.vue index 163b036eb..be35750a9 100644 --- a/src/pages/Order/Card/OrderCatalogItemDialog.vue +++ b/src/pages/Order/Card/OrderCatalogItemDialog.vue @@ -20,7 +20,7 @@ const props = defineProps({ }); const state = useState(); -const orderData = computed(() => state.get('orderData')); +const orderData = computed(() => state.get('Order')); const prices = ref((props.item.prices || []).map((item) => ({ ...item, quantity: 0 }))); const isLoading = ref(false); @@ -44,7 +44,7 @@ const addToOrder = async () => { state.set('orderTotal', orderTotal); const rows = orderData.value.rows.push(...items) || []; - state.set('orderData', { + state.set('Order', { ...orderData.value, rows, }); diff --git a/src/pages/Order/Card/OrderLines.vue b/src/pages/Order/Card/OrderLines.vue index 6093addb5..196328c65 100644 --- a/src/pages/Order/Card/OrderLines.vue +++ b/src/pages/Order/Card/OrderLines.vue @@ -22,7 +22,7 @@ const stateStore = useStateStore(); const route = useRoute(); const { t } = useI18n(); const quasar = useQuasar(); -const descriptorData = useArrayData('orderData'); +const descriptorData = useArrayData('Order'); const componentKey = ref(0); const tableLinesRef = ref(); const order = ref(); diff --git a/src/pages/Order/Card/OrderSummary.vue b/src/pages/Order/Card/OrderSummary.vue index a289688e4..a4bdb2881 100644 --- a/src/pages/Order/Card/OrderSummary.vue +++ b/src/pages/Order/Card/OrderSummary.vue @@ -27,7 +27,7 @@ const $props = defineProps({ const entityId = computed(() => $props.id || route.params.id); const summary = ref(); const quasar = useQuasar(); -const descriptorData = useArrayData('orderData'); +const descriptorData = useArrayData('Order'); const detailsColumns = ref([ { name: 'item',