fix(folders): API-Filter per folder + UI ruft Sounds je aktivem Tab ab; 'Alle' zeigt weiterhin alle

This commit is contained in:
vibe-bot 2025-08-08 02:14:46 +02:00
parent f9bec8b5a1
commit 1f0911c0f7
3 changed files with 9 additions and 3 deletions

View file

@ -30,14 +30,14 @@ export default function App() {
const interval = setInterval(async () => {
try {
const s = await fetchSounds(query);
const s = await fetchSounds(query, activeFolder);
setSounds(s.items);
setTotal(s.total);
setFolders(s.folders);
} catch {}
}, 10000);
return () => clearInterval(interval);
}, []);
}, [activeFolder]);
const filtered = useMemo(() => {
const q = query.trim().toLowerCase();