Fixed lint issues

This commit is contained in:
maziggy
2026-01-21 06:48:20 +01:00
parent 9f396644da
commit 00fbc87309
2 changed files with 1 additions and 3 deletions
@@ -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) => {
-2
View File
@@ -927,14 +927,12 @@ export function FileManagerPage() {
const [sortDirection, setSortDirection] = useState<SortDirection>('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