From 4a12fd08e09f2e2ca846570db482a1171ddc3598 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 11 Jul 2024 12:29:48 +0200 Subject: [PATCH] feat: handle dates --- src/pages/Item/ItemFixedPrice.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pages/Item/ItemFixedPrice.vue b/src/pages/Item/ItemFixedPrice.vue index 11817d3e9..a5272eee0 100644 --- a/src/pages/Item/ItemFixedPrice.vue +++ b/src/pages/Item/ItemFixedPrice.vue @@ -69,7 +69,7 @@ const onFixedPricesFetched = (data) => { console.log(item.hasMinPrice); item.hasMinPrice = `${item.hasMinPrice !== 0}`; }); - fixedPrices.value = Array(200).fill(...data); + fixedPrices.value = data; // el objetivo de guardar una copia de las rows es evitar guardar cambios si la data no cambiĆ³ al disparar los eventos fixedPricesOriginalData.value = JSON.parse(JSON.stringify(data)); }; @@ -530,7 +530,6 @@ onUnmounted(() => (stateStore.rightDrawer = false)); style="max-width: 125px" :show-event="false" v-model="props.row.started" - :options="(date) => date < props.row.ended" />