This commit is contained in:
parent
ed7afaafb6
commit
df7af82d85
|
|
@ -177,6 +177,9 @@ export default function SetupPage() {
|
||||||
const workspaces = await getWorkspacesByUserId(profile.user_id)
|
const workspaces = await getWorkspacesByUserId(profile.user_id)
|
||||||
const homeWorkspace = workspaces.find(w => w.is_home)
|
const homeWorkspace = workspaces.find(w => w.is_home)
|
||||||
|
|
||||||
|
if (!homeWorkspace) {
|
||||||
|
throw new Error("Home workspace not found for user during setup. This should not happen.")
|
||||||
|
}
|
||||||
|
|
||||||
const baseUrl = typeof window !== "undefined"
|
const baseUrl = typeof window !== "undefined"
|
||||||
? `http://${window.location.hostname}:30000/v1`
|
? `http://${window.location.hostname}:30000/v1`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue