fix: Show proper error in case the team can't be published because requestedSlug isn't set (#14283)
Co-authored-by: Udit Takkar <[email protected]>
This commit is contained in:
1 parent
6283535d6a
commit
2cbf9e1ac8
3 files changed
+3
-5
No files matched your search
@@ -108,7 +108,7 @@ async function throwIfSlugConflicts({ id, slug }: { id: number; slug: string })
|
||||
// If foundOrg isn't same as the org being edited
|
||||
if (foundOrg.id !== id) {
|
||||
throw new HttpError({
|
||||
message: "Organization with same slug already exists",
|
||||
message: "Organization or a Team with same slug already exists",
|
||||
statusCode: 400,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user