From 1398a146ffd68a979d2f8a235ca51fbe364a5a04 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Mon, 22 Apr 2024 09:07:48 -0300 Subject: [PATCH] Change restOfData to restOfItem --- src/pages/Item/ItemFixedPrice.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/Item/ItemFixedPrice.vue b/src/pages/Item/ItemFixedPrice.vue index 1af73b393..933f1b0dd 100644 --- a/src/pages/Item/ItemFixedPrice.vue +++ b/src/pages/Item/ItemFixedPrice.vue @@ -333,9 +333,9 @@ const addRow = () => { const lastItemCopy = JSON.parse( JSON.stringify(fixedPrices.value[fixedPrices.value.length - 1]) ); - const { id, ...restOfData } = lastItemCopy; - fixedPricesOriginalData.value.push(restOfData); - fixedPrices.value.push(restOfData); + const { id, ...restOfItem } = lastItemCopy; + fixedPricesOriginalData.value.push(restOfItem); + fixedPrices.value.push(restOfItem); }; const openEditTableCellDialog = () => {