mirror of
https://github.com/shadcn-ui/taxonomy
synced 2026-05-24 01:38:28 +00:00
fix: do not return redirect
This commit is contained in:
parent
0f73a7509f
commit
54971bb980
3 changed files with 3 additions and 3 deletions
|
|
@ -31,7 +31,7 @@ export default async function DashboardPage() {
|
|||
const user = await getCurrentUser()
|
||||
|
||||
if (!user) {
|
||||
return redirect(authOptions.pages.signIn)
|
||||
redirect(authOptions.pages.signIn)
|
||||
}
|
||||
|
||||
const posts = await getPostsForUser(user.id)
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ export default async function SettingsPage() {
|
|||
const user = await getCurrentUser()
|
||||
|
||||
if (!user) {
|
||||
return redirect(authOptions.pages.signIn)
|
||||
redirect(authOptions.pages.signIn)
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ export default async function EditorPage({ params }: EditorPageProps) {
|
|||
const user = await getCurrentUser()
|
||||
|
||||
if (!user) {
|
||||
return redirect(authOptions.pages.signIn)
|
||||
redirect(authOptions.pages.signIn)
|
||||
}
|
||||
|
||||
const post = await getPostForUser(params.postId, user.id)
|
||||
|
|
|
|||
Loading…
Reference in a new issue