Skip to content

Commit

Permalink
fix(admin-ui): get scope from scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mjatin-dev committed Aug 17, 2022
1 parent 6c88067 commit 59c8693
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import GluuInputRow from 'Routes/Apps/Gluu/GluuInputRow'

const DOC_CATEGORY = 'openid_client'

function ClientScriptPanel({ client, scopes, scripts, formik }) {
function ClientScriptPanel({ client, scripts, formik }) {
const postScripts = scripts
.filter((item) => item.scriptType == 'POST_AUTHN')
.filter((item) => item.enabled)
Expand Down Expand Up @@ -45,7 +45,7 @@ function ClientScriptPanel({ client, scopes, scripts, formik }) {
label="fields.spontaneous_scopes"
formik={formik}
value={client.spontaneousScopeScriptDns}
options={scopes}
options={spontaneousScripts}
doc_category={DOC_CATEGORY}
></GluuTypeAheadForDn>
<GluuTypeAheadForDn
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,6 @@ function ClientWizardForm({
client={client}
formik={formik}
scripts={scripts}
scopes={scopes}
/>
</div>
)
Expand Down

0 comments on commit 59c8693

Please sign in to comment.