mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-08-30 06:57:14 +00:00
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:
@@ -204,7 +204,7 @@ export default function SettingsPage() {
|
|||||||
case 'subscription-formats': return <SubscriptionFormatsTab allSetting={allSetting} updateSetting={updateSetting} />;
|
case 'subscription-formats': return <SubscriptionFormatsTab allSetting={allSetting} updateSetting={updateSetting} />;
|
||||||
default: return <GeneralTab allSetting={allSetting} updateSetting={updateSetting} />;
|
default: return <GeneralTab allSetting={allSetting} updateSetting={updateSetting} />;
|
||||||
}
|
}
|
||||||
}, [activeSlug, allSetting, updateSetting]);
|
}, [activeSlug, allSetting, updateSetting, savePayload]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ConfigProvider theme={antdThemeConfig}>
|
<ConfigProvider theme={antdThemeConfig}>
|
||||||
|
|||||||
Reference in New Issue
Block a user