diff --git a/pc4mobx/hrmSalary/stores/ledger.js b/pc4mobx/hrmSalary/stores/ledger.js index 402b02b8..eb05162d 100644 --- a/pc4mobx/hrmSalary/stores/ledger.js +++ b/pc4mobx/hrmSalary/stores/ledger.js @@ -489,8 +489,8 @@ export class LedgerStore { @action listSalaryItem = (searchValue = "", current = 1) => { let excludeIds = []; - this.itemGroups.map((item) => { - item.items.map((i) => { + this.itemGroups && this.itemGroups.map((item) => { + item.items && item.items.map((i) => { excludeIds.push(i.salaryItemId); }); });