Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update group-settings.tsx

Kiran K712914cd3422
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/settings/group-settings.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/settings/group-settings.tsx
index 05ffae5307..5920ec72dc 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/settings/group-settings.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/settings/group-settings.tsx
@@ -101,7 +101,10 @@ function GroupSettingsForm({ group }: { group: GroupProps }) {
onChange={(e) => {
const name = e.target.value;
setValue("name", name, { shouldDirty: true });
- setValue("slug", slugify(name), { shouldDirty: true });
+
+ if (group.slug !== DEFAULT_PARTNER_GROUP.slug) {
+ setValue("slug", slugify(name), { shouldDirty: true });
+ }
}}
placeholder="Group name"
/>