Skip to content

Commit

Permalink
fix(admin-ui): multi value attribute implement
Browse files Browse the repository at this point in the history
  • Loading branch information
mjatin-dev committed Jun 22, 2022
1 parent 3e03014 commit d503cb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ function UserEditPage() {
jansStatus: userDetails.jansStatus || '',
}
for (let i in userDetails.customAttributes) {
if (userDetails.customAttributes[i].multiValued) {
let customAttribute = personAttributes.filter(
(e) => e.name == userDetails.customAttributes[i].name,
)
if (customAttribute[0].oxMultiValuedAttribute) {
initialValues[userDetails.customAttributes[i].name] =
userDetails.customAttributes[i].values
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,8 @@ function UserForm({ formik }) {
const setAttributes = () => {
let tempList = [...selectedClaims]
for (let i in userDetails.customAttributes) {
console.log('This is it', userDetails.customAttributes[i])
let data = getCustomAttributeById(userDetails.customAttributes[i].name)
if (data && !usedClaimes.includes(userDetails.customAttributes[i].name)) {
console.log('JMS', data)
data.options = userDetails.customAttributes[i].values
tempList.push(data)
}
Expand Down

0 comments on commit d503cb8

Please sign in to comment.