diff --git a/src/views/ProductStoreDetails.vue b/src/views/ProductStoreDetails.vue index ebc85a7..fa098e1 100644 --- a/src/views/ProductStoreDetails.vue +++ b/src/views/ProductStoreDetails.vue @@ -560,7 +560,7 @@ async function updateProductStoreDetail(event: any, fieldName: string, isToggle: event.stopImmediatePropagation(); payload = {[fieldName]: productStore.value[fieldName] === 'Y' ? 'N' : 'Y' }; } else { - if(event.target.value.trim() === productStore.value[fieldName]) return; + if((!productStore.value[fieldName] && !event.target.value.trim()) || (productStore.value[fieldName] && productStore.value[fieldName] === event.target.value.trim())) return; payload = { [fieldName]: event.target.value }; }