fix: profiles will not be selected after import

This commit is contained in:
wonfen 2024-08-22 00:57:04 +08:00
parent 12a6bfad00
commit 592167ffb7

View File

@ -137,7 +137,7 @@ const ProfilePage = () => {
mutate("getProfiles", newProfiles); mutate("getProfiles", newProfiles);
const remoteItem = newProfiles.items?.find((e) => e.type === "remote"); const remoteItem = newProfiles.items?.find((e) => e.type === "remote");
if (!newProfiles.current && remoteItem) { if (newProfiles.current && remoteItem) {
const current = remoteItem.uid; const current = remoteItem.uid;
await patchProfiles({ current }); await patchProfiles({ current });
mutateLogs(); mutateLogs();