Skip to content

Commit 07c7f70

Browse files
committed
More routing
1 parent 57143da commit 07c7f70

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

site/pages/workspaces/[user]/[workspace].tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ const WorkspacesPage: React.FC = () => {
1313
const router = useRouter()
1414
const { me, signOut } = useUser(true)
1515

16-
const { user, workspace } = router.query
16+
const { user: userQueryParam, workspace: workspaceQueryParam } = router.query
17+
18+
const userParam = firstOrDefault(userQueryParam, null)
19+
const workspaceParam = firstOrDefault(workspaceQueryParam, null)
1720

1821
return (
1922
<div className={styles.root}>

0 commit comments

Comments
 (0)