From 864684bb4f8d1a9437d2064ffca32524d4c8b189 Mon Sep 17 00:00:00 2001 From: mintsweet <0x1304570@gmail.com> Date: Tue, 30 Apr 2024 15:58:54 +0800 Subject: [PATCH] fix: onboard cannot exit --- config-ui/src/routes/onboard/components/card.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config-ui/src/routes/onboard/components/card.tsx b/config-ui/src/routes/onboard/components/card.tsx index 1baac37bae1..3c59ee082d2 100644 --- a/config-ui/src/routes/onboard/components/card.tsx +++ b/config-ui/src/routes/onboard/components/card.tsx @@ -49,7 +49,7 @@ export const OnboardCard = ({ style }: Props) => { const tasksRes = useAutoRefresh( async () => { - if (!record) { + if ((data && data.done) || !record) { return; }