Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Change update slug fallback to undefined

Tuan Dang2cc2a91812aa
diff --git a/backend/src/services/org/org-service.ts b/backend/src/services/org/org-service.ts
index 0d22185aea..8b333316fc 100644
--- a/backend/src/services/org/org-service.ts
+++ b/backend/src/services/org/org-service.ts
@@ -142,7 +142,7 @@ export const orgServiceFactory = ({
const org = await orgDAL.updateById(orgId, {
name,
- slug: slug ? slugify(slug) : slug,
+ slug: slug ? slugify(slug) : undefined,
authEnforced
});
if (!org) throw new BadRequestError({ name: "Org not found", message: "Organization not found" });