fix: refs #6919 use same data-key

This commit is contained in:
Jorge Penadés 2025-01-13 16:28:35 +01:00
parent ee00f7f5b5
commit 58d2c21e5b
3 changed files with 4 additions and 4 deletions

View File

@ -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,
});

View File

@ -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();

View File

@ -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',