diff --git a/src/pages/RoomsPage.tsx b/src/pages/RoomsPage.tsx index b4da7b9..f8578d4 100644 --- a/src/pages/RoomsPage.tsx +++ b/src/pages/RoomsPage.tsx @@ -46,7 +46,8 @@ export function RoomsPage() { r.type.toLowerCase().includes(search.toLowerCase()) || (r.name ?? '').toLowerCase().includes(search.toLowerCase()) const matchFloor = floorFilter === 'all' || r.floor === floorFilter - const matchCat = categoryFilter === 'all' || r.categoryId === categoryFilter + const matchCat = categoryFilter === 'all' || + (categoryFilter === '' ? !r.categoryId : r.categoryId === categoryFilter) return matchSearch && matchFloor && matchCat })