also check if slug is undefined
This commit is contained in:
parent
098eb79022
commit
f2acdb2d4e
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ export function OrganizationsSection() {
|
|||
|
||||
function handleConfigureOrganization(org: SerializedOrgWithProfiles) {
|
||||
let path: string;
|
||||
if (org.id === "personal") {
|
||||
if (org.id === "personal" || org.slug === undefined) {
|
||||
path = "/settings";
|
||||
} else {
|
||||
path = `/organizations/${org.slug}/settings`;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue