mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
parent
255466ec12
commit
fcb0ae48b2
1 changed files with 5 additions and 2 deletions
|
@ -34,7 +34,6 @@ const useSettingGroup = (): SettingGroupHook => {
|
|||
initialState: settings || [],
|
||||
onSave: async () => {
|
||||
await editSettings?.(changedSettings());
|
||||
setEditing(false);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -92,7 +91,11 @@ const useSettingGroup = (): SettingGroupHook => {
|
|||
saveState,
|
||||
focusRef,
|
||||
siteData,
|
||||
handleSave,
|
||||
handleSave: () => {
|
||||
const result = handleSave();
|
||||
setEditing(false);
|
||||
return result;
|
||||
},
|
||||
handleCancel,
|
||||
updateSetting,
|
||||
handleEditingChange
|
||||
|
|
Loading…
Reference in a new issue