From 5c9bf30c7992d103b45e92ed45601bc5f9b83fec Mon Sep 17 00:00:00 2001 From: wonfen Date: Thu, 22 Aug 2024 00:57:04 +0800 Subject: [PATCH] fix: profiles will not be selected after import --- src/pages/profiles.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/profiles.tsx b/src/pages/profiles.tsx index 5601159f..6052ea33 100644 --- a/src/pages/profiles.tsx +++ b/src/pages/profiles.tsx @@ -137,7 +137,7 @@ const ProfilePage = () => { mutate("getProfiles", newProfiles); const remoteItem = newProfiles.items?.find((e) => e.type === "remote"); - if (!newProfiles.current && remoteItem) { + if (newProfiles.current && remoteItem) { const current = remoteItem.uid; await patchProfiles({ current }); mutateLogs();