Skip to content

Commit

Permalink
fix(admin-ui): edit scopes fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mjatin-dev committed May 9, 2022
1 parent ddef701 commit 1c20cb6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion admin-ui/plugins/auth-server/components/Scopes/ScopeForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,14 @@ function ScopeForm({ scope, scripts, attributes, handleSubmit }) {
}

function getMapping(partial, total) {
let mappings = []
if (!partial) {
partial = []
}
return total.filter((item) => partial.includes(item.dn))
if (partial && total) {
mappings = total.filter((item) => partial.includes(item.dn))
}
return mappings
}

function activate() {
Expand Down

0 comments on commit 1c20cb6

Please sign in to comment.