From 6ae75883b0fab5be72938cc3e636a051bc5eaab1 Mon Sep 17 00:00:00 2001 From: MustangDeng <670124965@qq.com> Date: Tue, 14 Jun 2022 10:23:38 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=AF=91=E9=97=AE=E9=A2=98=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pc4mobx/hrmSalary/pages/ledger/salaryItemForm.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/ledger/salaryItemForm.js b/pc4mobx/hrmSalary/pages/ledger/salaryItemForm.js index 49e698e8..1f9bb180 100644 --- a/pc4mobx/hrmSalary/pages/ledger/salaryItemForm.js +++ b/pc4mobx/hrmSalary/pages/ledger/salaryItemForm.js @@ -88,13 +88,13 @@ export default class SalaryItemForm extends React.Component { dataSource.map((data, index) => { data.sortedIndex = index }) - itemGroups = itemGroups ? [...itemGroups] : [] - itemGroups.map(groupItem => { + let itemResultGroups = itemGroups ? [...itemGroups] : [] + itemResultGroups.map(groupItem => { if(groupItem.id == item.id) { groupItem.items = dataSource } }) - setItemGroups(itemGroups) + setItemGroups(itemResultGroups) } render() {