Skip to content

Commit ff2a522

Browse files
Update src/content/docs/authenticate/manage-authentication/navigate-between-organizations.mdx
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 88c485b commit ff2a522

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/authenticate/manage-authentication/navigate-between-organizations.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const [currentOrgCode, setCurrentOrgCode] = useState<string | null>(null)
8686

8787
useEffect(() => {
8888
getClaim('organizations', 'idToken').then((organizations) => {
89-
setOrgs(organizations.value)
89+
setOrgs(organizations?.value ?? [])
9090
})
9191
getOrganization().then((org) => {
9292
setCurrentOrgCode(org)

0 commit comments

Comments
 (0)