Skip to content

feat: show warning on unrecognized idp org mapping claims #16478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Feb 6, 2025
Prev Previous commit
huh
  • Loading branch information
aslilac committed Feb 6, 2025
commit 820cca33ef7535a3e11aba47b717ebec0406fc87
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const IdpOrgSyncPage: FC = () => {
}
}, [patchOrganizationSyncSettingsMutation.error]);

if (settingsQuery.isLoading || fieldValuesQuery.isLoading) {
if (settingsQuery.isLoading) {
return <Loader />;
}

Expand Down Expand Up @@ -92,7 +92,7 @@ export const IdpOrgSyncPage: FC = () => {
organizationSyncSettings={settingsQuery.data}
claimFieldValues={fieldValuesQuery.data}
organizations={organizations}
onSyncFieldChange={(field) => setField(field)}
onSyncFieldChange={setField}
onSubmit={async (data) => {
try {
await patchOrganizationSyncSettingsMutation.mutateAsync(data);
Expand All @@ -106,6 +106,7 @@ export const IdpOrgSyncPage: FC = () => {
);
}
}}
error={settingsQuery.error || fieldValuesQuery.error}
/>
</Cond>
</ChooseOne>
Expand Down
Loading