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:
MHSanaei
2026-07-02 17:16:12 +02:00
parent 7c12700c7d
commit 5e8327e728
+1 -1
View File
@@ -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}>