From b781940c77aa9d6d85d60cd2ba1c276eb6a3ffed Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 4 Jul 2024 17:31:40 +0200 Subject: [PATCH] feat: handle qCheckbox 3rd state --- src/pages/Item/ItemFixedPrice.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pages/Item/ItemFixedPrice.vue b/src/pages/Item/ItemFixedPrice.vue index ea1d92e7b..997db0fbe 100644 --- a/src/pages/Item/ItemFixedPrice.vue +++ b/src/pages/Item/ItemFixedPrice.vue @@ -65,6 +65,10 @@ const fetchFixedPrices = async () => { }; const onFixedPricesFetched = (data) => { + data.forEach((item) => { + console.log(item.hasMinPrice); + item.hasMinPrice = `${item.hasMinPrice !== 0}`; + }); 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)); @@ -495,8 +499,8 @@ onUnmounted(() => (stateStore.rightDrawer = false));