From 6bf1391890c8624d75a6c770c64c9d96a26ab764 Mon Sep 17 00:00:00 2001 From: HotelSync Date: Mon, 23 Mar 2026 14:07:35 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20"=D0=B1=D0=B5=D0=B7=20=D0=BA=D0=B0=D1=82?= =?UTF-8?q?=D0=B5=D0=B3=D0=BE=D1=80=D0=B8=D0=B8"=20filter=20matches=20room?= =?UTF-8?q?s=20with=20undefined=20categoryId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- src/pages/RoomsPage.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 })