0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Fixed onSave method in AdminX DS

refs. https://github.com/TryGhost/Team/issues/3150
This commit is contained in:
Peter Zimon 2023-05-19 15:04:22 +02:00
parent 0fb35cf236
commit 9d84bc257b

View file

@ -30,9 +30,7 @@ const SettingGroup: React.FC<SettingGroupProps> = ({title, description, state, c
};
const handleSave = () => {
if (onSave) {
onSave();
}
onSave?.();
if (onStateChange) {
onStateChange('view');
}