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