also check if slug is undefined

This commit is contained in:
uinstinct 2025-10-10 08:50:00 +05:30
parent 098eb79022
commit f2acdb2d4e

View file

@ -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`;