From 884f250d00759dd6b8a20ebf34bf7a43be7ac7a4 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Fri, 14 Nov 2025 11:41:04 +0000 Subject: [PATCH] lint --- .../shared/config/configSections/AdminConnectionsSection.tsx | 3 +-- .../shared/config/configSections/AdminDatabaseSection.tsx | 3 +-- .../shared/config/configSections/AdminEndpointsSection.tsx | 3 +-- .../shared/config/configSections/AdminGeneralSection.tsx | 3 +-- .../shared/config/configSections/AdminPrivacySection.tsx | 3 +-- .../shared/config/configSections/AdminSecuritySection.tsx | 3 +-- .../shared/config/configSections/AdminUsageSection.tsx | 1 - 7 files changed, 6 insertions(+), 13 deletions(-) diff --git a/frontend/src/proprietary/components/shared/config/configSections/AdminConnectionsSection.tsx b/frontend/src/proprietary/components/shared/config/configSections/AdminConnectionsSection.tsx index 019771af3..bbb19380a 100644 --- a/frontend/src/proprietary/components/shared/config/configSections/AdminConnectionsSection.tsx +++ b/frontend/src/proprietary/components/shared/config/configSections/AdminConnectionsSection.tsx @@ -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; diff --git a/frontend/src/proprietary/components/shared/config/configSections/AdminDatabaseSection.tsx b/frontend/src/proprietary/components/shared/config/configSections/AdminDatabaseSection.tsx index a463aa522..fdc4768bb 100644 --- a/frontend/src/proprietary/components/shared/config/configSections/AdminDatabaseSection.tsx +++ b/frontend/src/proprietary/components/shared/config/configSections/AdminDatabaseSection.tsx @@ -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()) { diff --git a/frontend/src/proprietary/components/shared/config/configSections/AdminEndpointsSection.tsx b/frontend/src/proprietary/components/shared/config/configSections/AdminEndpointsSection.tsx index 4bc635714..8bcf305bb 100644 --- a/frontend/src/proprietary/components/shared/config/configSections/AdminEndpointsSection.tsx +++ b/frontend/src/proprietary/components/shared/config/configSections/AdminEndpointsSection.tsx @@ -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()) { diff --git a/frontend/src/proprietary/components/shared/config/configSections/AdminGeneralSection.tsx b/frontend/src/proprietary/components/shared/config/configSections/AdminGeneralSection.tsx index 0e00415bf..3e2b445a6 100644 --- a/frontend/src/proprietary/components/shared/config/configSections/AdminGeneralSection.tsx +++ b/frontend/src/proprietary/components/shared/config/configSections/AdminGeneralSection.tsx @@ -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; diff --git a/frontend/src/proprietary/components/shared/config/configSections/AdminPrivacySection.tsx b/frontend/src/proprietary/components/shared/config/configSections/AdminPrivacySection.tsx index 5db1276b9..b3edede1c 100644 --- a/frontend/src/proprietary/components/shared/config/configSections/AdminPrivacySection.tsx +++ b/frontend/src/proprietary/components/shared/config/configSections/AdminPrivacySection.tsx @@ -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()) { diff --git a/frontend/src/proprietary/components/shared/config/configSections/AdminSecuritySection.tsx b/frontend/src/proprietary/components/shared/config/configSections/AdminSecuritySection.tsx index 7c4b6cd55..8934f4c45 100644 --- a/frontend/src/proprietary/components/shared/config/configSections/AdminSecuritySection.tsx +++ b/frontend/src/proprietary/components/shared/config/configSections/AdminSecuritySection.tsx @@ -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; diff --git a/frontend/src/proprietary/components/shared/config/configSections/AdminUsageSection.tsx b/frontend/src/proprietary/components/shared/config/configSections/AdminUsageSection.tsx index ef6aaa6ac..b50c222eb 100644 --- a/frontend/src/proprietary/components/shared/config/configSections/AdminUsageSection.tsx +++ b/frontend/src/proprietary/components/shared/config/configSections/AdminUsageSection.tsx @@ -90,7 +90,6 @@ const AdminUsageSection: React.FC = () => { }); setLoading(false); } - // eslint-disable-next-line react-hooks/exhaustive-deps }, [displayMode, dataType, loginEnabled]); const handleRefresh = () => {