Skip to content

Commit

Permalink
Merge pull request #196 from praveenKDass/release-5.1.0
Browse files Browse the repository at this point in the history
hotFixes:form config issue
  • Loading branch information
aks30 authored Oct 1, 2024
2 parents 298f4e6 + 32ce810 commit 0a34eda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion generics/constants/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,6 @@ module.exports = {
"PROFILE_CONFIG_FORM_KEY" : "profileConfig_v2",
"SERVER_TIME_OUT" : 5000,
"CERTIFICATE" : "certificate",
"ORACLE_CLOUD_SERVICE" : "OCI"
"ORACLE_CLOUD_SERVICE" : "OCI",
"PERSONA":"persona"
};
5 changes: 3 additions & 2 deletions generics/services/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ const configForStateLocation = function ( stateLocationCode, entityKey ) {
result : []
})
}

let subEntityData = subEntitiesDetails.data.form.data.fields[1].children.teacher;
let subEntityData = subEntitiesDetails.data.form.data.fields.filter((fieldInstance)=>{
return fieldInstance.code == constants.common.PERSONA
})[0].children.administrator;
//Entity type is stored in a key called code
let subEntities = subEntityData.map( subEntity => {
return subEntity.code;
Expand Down

0 comments on commit 0a34eda

Please sign in to comment.