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