This commit is contained in:
parent
6bc9a2be8b
commit
ba5b9af0ef
|
|
@ -16,7 +16,8 @@ import { getAssistantImageFromStorage } from "@/db/storage/assistant-images"
|
|||
import { getToolWorkspacesByWorkspaceId } from "@/db/tools"
|
||||
import { getWorkspaceById } from "@/db/workspaces"
|
||||
import { convertBlobToBase64 } from "@/lib/blob-to-b64"
|
||||
import { supabase } from "@/lib/supabase/browser-client"
|
||||
//import { supabase } from "@/lib/supabase/browser-client"
|
||||
import { createClient } from "@/lib/supabase/browser-client"
|
||||
import { LLMID } from "@/types"
|
||||
import { useParams, useRouter, useSearchParams } from "next/navigation"
|
||||
import { ReactNode, useContext, useEffect, useState } from "react"
|
||||
|
|
@ -71,8 +72,10 @@ export default function WorkspaceLayout({ children }: WorkspaceLayoutProps) {
|
|||
|
||||
const [loading, setLoading] = useState(true)
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
;(async () => {
|
||||
const supabase = await createClient()
|
||||
const session = (await supabase.auth.getSession()).data.session
|
||||
|
||||
if (!session) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue