This commit is contained in:
Anthony Stirling 2025-11-14 11:41:04 +00:00
parent 5f2114fb1a
commit 884f250d00
7 changed files with 6 additions and 13 deletions

View File

@ -115,8 +115,7 @@ export default function AdminConnectionsSection() {
if (loginEnabled) {
fetchSettings();
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [loginEnabled]);
}, [loginEnabled, fetchSettings]);
// Override loading state when login is disabled
const actualLoading = loginEnabled ? loading : false;

View File

@ -84,8 +84,7 @@ export default function AdminDatabaseSection() {
if (loginEnabled) {
fetchSettings();
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [loginEnabled]);
}, [loginEnabled, fetchSettings]);
const handleSave = async () => {
if (!validateLoginEnabled()) {

View File

@ -35,8 +35,7 @@ export default function AdminEndpointsSection() {
if (loginEnabled) {
fetchSettings();
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [loginEnabled]);
}, [loginEnabled, fetchSettings]);
const handleSave = async () => {
if (!validateLoginEnabled()) {

View File

@ -147,8 +147,7 @@ export default function AdminGeneralSection() {
if (loginEnabled) {
fetchSettings();
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [loginEnabled]);
}, [loginEnabled, fetchSettings]);
// Override loading state when login is disabled
const actualLoading = loginEnabled ? loading : false;

View File

@ -82,8 +82,7 @@ export default function AdminPrivacySection() {
if (loginEnabled) {
fetchSettings();
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [loginEnabled]);
}, [loginEnabled, fetchSettings]);
const handleSave = async () => {
if (!validateLoginEnabled()) {

View File

@ -163,8 +163,7 @@ export default function AdminSecuritySection() {
if (loginEnabled) {
fetchSettings();
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [loginEnabled]);
}, [loginEnabled, fetchSettings]);
// Override loading state when login is disabled
const actualLoading = loginEnabled ? loading : false;

View File

@ -90,7 +90,6 @@ const AdminUsageSection: React.FC = () => {
});
setLoading(false);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [displayMode, dataType, loginEnabled]);
const handleRefresh = () => {