mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-08-28 04:52:58 +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:
parent
7c12700c7d
commit
5e8327e728
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue