From 667272fab61d41ceed9c1c72aa4825aa6f3d96f9 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Mon, 6 Jun 2022 11:44:16 +0200 Subject: [PATCH] (bug) list of OIDC scopes are loading indefinitely --- CHANGELOG.md | 1 + .../components/authentication-provider/openid-connect-form.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b4a01c0f3..b96592ab1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Updated sidekiq-unique-jobs to 7.1.23 to get rid of Sidekiq's default_worker_options deprecation warning - Fix a bug: unable to edit OIDC provider +- Fix a bug: list of OIDC scopes are loading indefinitely ## v5.4.3 2022 June 6 diff --git a/app/frontend/src/javascript/components/authentication-provider/openid-connect-form.tsx b/app/frontend/src/javascript/components/authentication-provider/openid-connect-form.tsx index 4969c6842..af8e29231 100644 --- a/app/frontend/src/javascript/components/authentication-provider/openid-connect-form.tsx +++ b/app/frontend/src/javascript/components/authentication-provider/openid-connect-form.tsx @@ -72,7 +72,7 @@ export const OpenidConnectForm = ({ value: scope, label: scope }))); } else { - current.map(scope => ({ value: scope, label: scope })); + callback(current.map(scope => ({ value: scope, label: scope }))); } };