mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 11:12:35 +02:00
Fixed lint issues
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user