pl-fe: fix feature gate
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -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({
|
||||||
|
|||||||
Reference in New Issue
Block a user