fix bug undefined array filter & snackbar tidak muncul saat konfirmasi handover inventaris

This commit is contained in:
2026-07-09 09:15:37 +07:00
parent 1f5bcfacd5
commit dd5f0b6ab4
3 changed files with 978 additions and 974 deletions

View File

@@ -686,7 +686,7 @@ module.exports = {
},
hasHandover(item) {
// props.item.hasHandover === '1' && props.item.handoverConfirmedBy == '0' && props.item.handoverToUserID === user.M_UserID
return item.length > 0 && item.every(obj => obj.allHandedOver == 'N')
return Array.isArray(item) && item.length > 0 && item.every(obj => obj.allHandedOver == 'N')
},
confirmHandover(item) {
this.$store.commit("requester/updateSelectedMainTable", item);