fix bug undefined array filter & snackbar tidak muncul saat konfirmasi handover inventaris
This commit is contained in:
@@ -59,11 +59,10 @@ module.exports = {
|
||||
this.dialogConfirmHandover = false
|
||||
},
|
||||
itemNeedConfirming(data) {
|
||||
return data.filter(item => item.allHandedOver == 'N');
|
||||
return Array.isArray(data) ? data.filter(item => item.allHandedOver == 'N') : [];
|
||||
},
|
||||
async saveConfirmHandOver() {
|
||||
const dataHanded = this.selected_main.itemHandedOver;
|
||||
const itemHanded = dataHanded.filter(item => item.allHandedOver == 'N');
|
||||
const itemHanded = this.itemNeedConfirming(this.selected_main.itemHandedOver);
|
||||
|
||||
let prm = {
|
||||
purchaseRequestID: this.selected_main.prId,
|
||||
|
||||
Reference in New Issue
Block a user