We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d96056 commit 2b0050cCopy full SHA for 2b0050c
packages/clerk-js/src/ui/components/OrganizationProfile/InviteMembersForm.tsx
@@ -199,6 +199,8 @@ const AsyncRoleSelect = (field: ReturnType<typeof useFormControl<'role'>>) => {
199
return;
200
}
201
202
+ // Skip if the default role from org settings is not in the current role set
203
+ // This will eventually be returned by the roles endpoint, and `organizationSettings.domains.defaultRole` will be deprecated
204
const defaultRoleExists = options?.some(option => option.value === defaultRole);
205
if (!defaultRoleExists) {
206
0 commit comments