From 7a488130ad0802936f4746cee9eef06717eb9de7 Mon Sep 17 00:00:00 2001 From: oiov Date: Wed, 6 Nov 2024 17:38:35 +0800 Subject: [PATCH] upd --- app/(protected)/dashboard/records/record-list.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/(protected)/dashboard/records/record-list.tsx b/app/(protected)/dashboard/records/record-list.tsx index e22160b..4767592 100644 --- a/app/(protected)/dashboard/records/record-list.tsx +++ b/app/(protected)/dashboard/records/record-list.tsx @@ -118,6 +118,9 @@ export default function UserRecordsList({ user, action }: RecordListProps) { if (res.ok) { const data = await res.json(); if (data === "Target is accessible!") { + if (!originalState) { + setChecked(originalState); + } toast.success(data); } else { setChecked(originalState);