From 3a5b0ca84c6111cfc6bfc2cbfd5df56e77bc32be Mon Sep 17 00:00:00 2001 From: minuk926 Date: Tue, 31 May 2022 17:22:08 +0900 Subject: [PATCH] fix: dashboard fix --- src/views/dashboard/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 })); }