Skip to content

Commit

Permalink
Fixed: page leaving alert coming every time leaving the page (#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
amansinghbais committed Dec 23, 2024
1 parent 210d3dd commit 2fd98b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/HardCountDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ function getVariance(item: any , isRecounting: boolean) {
}
function hasUnsavedChanges() {
return inputCount.value >= 0 || cycleCountItems.value.itemList.find((item: any) => item.scannedCount && !item.isMatchNotFound);
return (inputCount.value && inputCount.value >= 0) || cycleCountItems.value.itemList.find((item: any) => item.scannedCount && !item.isMatchNotFound);
}
function isItemAlreadyAdded(product: any) {
Expand Down

0 comments on commit 2fd98b5

Please sign in to comment.