From ab179fedfdc6a3668341a8bf6bd2b55a10c20329 Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Mon, 23 Dec 2024 11:31:53 +0530 Subject: [PATCH] Fixed: ref getting assigned to previous item var (#528) --- src/views/HardCountDetail.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/HardCountDetail.vue b/src/views/HardCountDetail.vue index cdc5ae41..211e899f 100644 --- a/src/views/HardCountDetail.vue +++ b/src/views/HardCountDetail.vue @@ -511,7 +511,7 @@ const onScroll = (event: any) => { if(inputCount.value) saveCount(previousItem, true); } - previousItem = currentProduct // Update the previousItem variable with the current item + previousItem = currentProduct.value // Update the previousItem variable with the current item if(product) { store.dispatch("product/currentProduct", product); }