summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/router.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/router.ts b/src/client/router.ts
index 575aed416d..6b789149cf 100644
--- a/src/client/router.ts
+++ b/src/client/router.ts
@@ -36,7 +36,7 @@ export const router = createRouter({
{ path: '/channels', component: page('channels') },
{ path: '/channels/new', component: page('channel-editor') },
{ path: '/channels/:channelId/edit', component: page('channel-editor'), props: true },
- { path: '/channels/:channelId', component: page('channel'), props: true },
+ { path: '/channels/:channelId', component: page('channel'), props: route => ({ channelId: route.params.channelId }) },
{ path: '/my/notifications', component: page('notifications') },
{ path: '/my/favorites', component: page('favorites') },
{ path: '/my/messages', component: page('messages') },