const { data } = trpc.workspace.getWorkspace.useQuery(
{ workspaceId: workspaceId! },
//^ Type 'string | undefined' is not assignable to type 'string'.
{ enabled: !!workspaceId }
)
const { data } = trpc.workspace.getWorkspace.useQuery(
{ workspaceId: workspaceId! },
//^ Type 'string | undefined' is not assignable to type 'string'.
{ enabled: !!workspaceId }
)
const { data } = trpc.workspace.getWorkspace.useQuery( { workspaceId: workspaceId! }, //^ Type 'string | undefined' is not assignable to type 'string'. { enabled: !!workspaceId } )
const { data } = trpc.workspace.getWorkspace.useQuery( { workspaceId: workspaceId! }, //^ Type 'string | undefined' is not assignable to type 'string'. { enabled: !!workspaceId } )