mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-01 03:09:34 +00:00
Upgrade Clerk, Next.js, and React to latest versions + minor code changes
This commit is contained in:
parent
a63270db0c
commit
a89c9a9b02
31 changed files with 140 additions and 130 deletions
|
@ -8,7 +8,7 @@ export async function generateMetadata(props: {
|
|||
params: Promise<{ boardId: string }>;
|
||||
}) {
|
||||
const params = await props.params;
|
||||
const { orgId } = auth();
|
||||
const { orgId } = await auth();
|
||||
|
||||
if (!orgId) return { title: 'Board' };
|
||||
|
||||
|
@ -32,7 +32,7 @@ const BoardIdLayout = async (props: {
|
|||
|
||||
const { children } = props;
|
||||
|
||||
const { orgId } = auth();
|
||||
const { orgId } = await auth();
|
||||
|
||||
if (!orgId) redirect('/select-org');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue