From 00fbc873094bcae6b4ebd200b42af5db467fa522 Mon Sep 17 00:00:00 2001 From: maziggy Date: Wed, 21 Jan 2026 06:48:20 +0100 Subject: [PATCH] Fixed lint issues --- frontend/src/components/ConfigureAmsSlotModal.tsx | 2 +- frontend/src/pages/FileManagerPage.tsx | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/src/components/ConfigureAmsSlotModal.tsx b/frontend/src/components/ConfigureAmsSlotModal.tsx index 64d04407a..8032a907f 100644 --- a/frontend/src/components/ConfigureAmsSlotModal.tsx +++ b/frontend/src/components/ConfigureAmsSlotModal.tsx @@ -513,7 +513,7 @@ export function ConfigureAmsSlotModal({ } else { setSelectedKProfile(null); } - }, [selectedPresetId, matchingKProfiles.length]); // Only trigger when preset changes + }, [selectedPresetId, matchingKProfiles]); // Escape key handler const handleKeyDown = useCallback((e: KeyboardEvent) => { diff --git a/frontend/src/pages/FileManagerPage.tsx b/frontend/src/pages/FileManagerPage.tsx index 4abd5d407..169ae0dfa 100644 --- a/frontend/src/pages/FileManagerPage.tsx +++ b/frontend/src/pages/FileManagerPage.tsx @@ -927,14 +927,12 @@ export function FileManagerPage() { const [sortDirection, setSortDirection] = useState('desc'); // Update selectedFolderId when URL parameter changes (e.g., navigating from Project or Archive page) - // Note: Only depend on searchParams, not selectedFolderId, to avoid resetting when user clicks folders useEffect(() => { const folderParam = searchParams.get('folder'); if (folderParam) { const newFolderId = parseInt(folderParam, 10); setSelectedFolderId(newFolderId); } - // eslint-disable-next-line react-hooks/exhaustive-deps }, [searchParams]); // Queries