From bff01af3277ed3d1e849d01485c9faeb9699ff71 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Mon, 26 Sep 2022 19:21:03 +0200 Subject: [PATCH] `client-flow` can also be bound (#3379) fixes: #3295 --- apps/admin-ui/src/authentication/AuthenticationSection.tsx | 3 +-- apps/admin-ui/src/authentication/FlowDetails.tsx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/admin-ui/src/authentication/AuthenticationSection.tsx b/apps/admin-ui/src/authentication/AuthenticationSection.tsx index c0e3efd751..a1a840f211 100644 --- a/apps/admin-ui/src/authentication/AuthenticationSection.tsx +++ b/apps/admin-ui/src/authentication/AuthenticationSection.tsx @@ -202,8 +202,7 @@ export default function AuthenticationSection() { setSelectedFlow(data); }, }, - ...(data.usedBy?.type !== "DEFAULT" && - data.providerId !== "client-flow" + ...(data.usedBy?.type !== "DEFAULT" ? [ { title: t("bindFlow"), diff --git a/apps/admin-ui/src/authentication/FlowDetails.tsx b/apps/admin-ui/src/authentication/FlowDetails.tsx index 6e4cc86ea0..667009cdc9 100644 --- a/apps/admin-ui/src/authentication/FlowDetails.tsx +++ b/apps/admin-ui/src/authentication/FlowDetails.tsx @@ -233,7 +233,7 @@ export default function FlowDetails() { const hasExecutions = executionList?.expandableList.length !== 0; const dropdownItems = [ - ...(usedBy !== "default" && flow?.providerId !== "client-flow" + ...(usedBy !== "DEFAULT" ? [