diff --git a/server/src/index.ts b/server/src/index.ts index 06da991..7033628 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -225,8 +225,7 @@ app.get('/api/sounds', (req: Request, res: Response) => { const filteredItems = itemsByFolder.filter((s) => (q ? s.name.toLowerCase().includes(q) : true)); const total = allItems.length; - const rootCount = rootFiles.length; - const foldersOut = [{ key: '__all__', name: 'Alle', count: total }, { key: '', name: 'Root', count: rootCount }, ...folders]; + const foldersOut = [{ key: '__all__', name: 'Alle', count: total }, ...folders]; res.json({ items: filteredItems, total, folders: foldersOut }); }); diff --git a/web/src/App.tsx b/web/src/App.tsx index df08d0e..83361e5 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -132,6 +132,15 @@ export default function App() { {folders.length > 0 && (