mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 11:42:21 +08:00
fix: profiles will not be selected after import
This commit is contained in:
parent
12a6bfad00
commit
592167ffb7
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user