fix: dashboard fix

main
minuk926 2 years ago
parent fa0a406937
commit 3a5b0ca84c

@ -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 }));
}

Loading…
Cancel
Save