mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 04:43:44 +08:00
fix: edit groups error
This commit is contained in:
parent
f04ee0baf2
commit
f74f06e403
@ -501,10 +501,10 @@ export const ProfileItem = (props: Props) => {
|
|||||||
/>
|
/>
|
||||||
<EditorViewer
|
<EditorViewer
|
||||||
open={groupsOpen}
|
open={groupsOpen}
|
||||||
initialData={readProfileFile(option?.proxies ?? "")}
|
initialData={readProfileFile(option?.groups ?? "")}
|
||||||
language="yaml"
|
language="yaml"
|
||||||
onSave={async (prev, curr) => {
|
onSave={async (prev, curr) => {
|
||||||
await saveProfileFile(option?.proxies ?? "", curr ?? "");
|
await saveProfileFile(option?.groups ?? "", curr ?? "");
|
||||||
onSave && onSave(prev, curr);
|
onSave && onSave(prev, curr);
|
||||||
}}
|
}}
|
||||||
onClose={() => setGroupsOpen(false)}
|
onClose={() => setGroupsOpen(false)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user