diff --git a/src/views/biz/admin/judge/JudgeReview.jsx b/src/views/biz/admin/judge/JudgeReview.jsx index 845d38c..e00b005 100644 --- a/src/views/biz/admin/judge/JudgeReview.jsx +++ b/src/views/biz/admin/judge/JudgeReview.jsx @@ -77,9 +77,10 @@ const JudgeReview = ({ msDatagb, menuName }) => { const deleteJudge = useCallback( (row) => () => { let res = {}; + const datagb = row.msDatagb; removeAlert(async () => { - if (msDatagb) { + if (datagb) { res = await removeJudge(row); } else { res = await removeParkingJudge(row);