Openstatus www.openstatus.dev

fix: window undefined

mxkaske 9692c3db a10b6e1d

+1 -1
+1 -1
apps/web/src/components/workspace/select-workspace.tsx
··· 57 57 <DropdownMenuItem 58 58 key={workspace.id} 59 59 onClick={() => { 60 - if (workspace.slug !== active) { 60 + if (workspace.slug !== active && typeof window !== "undefined") { 61 61 window.location.href = `/app/${workspace.slug}/monitors`; 62 62 } 63 63 }}