pl-fe: fix feature gate

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-01-03 15:29:49 +01:00
parent bf19638ac8
commit 19c16f1ea7

View File

@ -185,7 +185,7 @@ const layouts = {
id: 'chats-layout', id: 'chats-layout',
component: ChatsLayout, component: ChatsLayout,
beforeLoad: requireAuthMiddleware(({ context: { features } }) => { beforeLoad: requireAuthMiddleware(({ context: { features } }) => {
if (!features.events) throw notFound(); if (!features.chats) throw notFound();
}), }),
}), }),
default: createRoute({ default: createRoute({