fix(settings): include savePayload in the category body memo deps
react-hooks/exhaustive-deps flagged the omission; a stale closure could hand SecurityTab an outdated save callback after a mutation state change.
This commit is contained in:
parent
7c12700c7d
commit
5e8327e728
|
|
@ -204,7 +204,7 @@ export default function SettingsPage() {
|
|||
case 'subscription-formats': return <SubscriptionFormatsTab allSetting={allSetting} updateSetting={updateSetting} />;
|
||||
default: return <GeneralTab allSetting={allSetting} updateSetting={updateSetting} />;
|
||||
}
|
||||
}, [activeSlug, allSetting, updateSetting]);
|
||||
}, [activeSlug, allSetting, updateSetting, savePayload]);
|
||||
|
||||
return (
|
||||
<ConfigProvider theme={antdThemeConfig}>
|
||||
|
|
|
|||
Loading…
Reference in a new issue