tangled
alpha
login
or
join now
openstatus.dev
/
openstatus
6
fork
atom
Openstatus
www.openstatus.dev
6
fork
atom
overview
issues
pulls
pipelines
fix: window undefined
mxkaske
2 years ago
9692c3db
a10b6e1d
+1
-1
1 changed file
expand all
collapse all
unified
split
apps
web
src
components
workspace
select-workspace.tsx
+1
-1
apps/web/src/components/workspace/select-workspace.tsx
···
57
57
<DropdownMenuItem
58
58
key={workspace.id}
59
59
onClick={() => {
60
60
-
if (workspace.slug !== active) {
60
60
+
if (workspace.slug !== active && typeof window !== "undefined") {
61
61
window.location.href = `/app/${workspace.slug}/monitors`;
62
62
}
63
63
}}