mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-21 06:38:42 +08:00
fix: profiles will not be selected after import
This commit is contained in:
1 parent
6efc518eed
commit
5c9bf30c79
1 file changed
+1
-1
@@ -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();
|
||||||
|
|||||||
Reference in new issue
Block a user