Browse Source

fix: edit groups error

MystiPanda 11 tháng trước cách đây
mục cha
commit
dc066edec4
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/components/profile/profile-item.tsx

+ 2 - 2
src/components/profile/profile-item.tsx

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