diff --git a/src/views/dashboard/index.js b/src/views/dashboard/index.js index 795f3c1..14b8d4a 100644 --- a/src/views/dashboard/index.js +++ b/src/views/dashboard/index.js @@ -138,10 +138,10 @@ const Dashboard = () => { const residentRows = res.data.residentJudgeList.map((d, idx) => ({ ...d, rowId: idx + 1 })); setMsEdate2(residentRows[0].msEdate); setTotalCount2(residentRows.count); - setRowsState2((prevState) => ({ ...prevState, rows: parkRows })); + setRowsState2((prevState) => ({ ...prevState, rows: residentRows })); const disabledRows = res.data.disabledJudgeList.map((d, idx) => ({ ...d, rowId: idx + 1 })); - setMsEdate3(residentRows[0].msEdate); + setMsEdate3(disabledRows[0].msEdate); setTotalCount3(disabledRows.count); setRowsState3((prevState) => ({ ...prevState, rows: disabledRows })); }