fix: edit groups error

This commit is contained in:
MystiPanda 2024-07-03 10:58:57 +08:00 committed by GitHub
parent f04ee0baf2
commit f74f06e403

View File

@ -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)}