Skip to content

Commit

Permalink
Merge pull request #168 from borkarsaish65/release-5.1.0
Browse files Browse the repository at this point in the history
Hotfix config
  • Loading branch information
aks30 authored Oct 1, 2024
2 parents 96d8bff + 3c0d602 commit 3330c23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion generics/messageConstants/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,6 @@ module.exports = {
CACHE_TTL : 43200 ,
GET_METHOD : "GET",
SUBENTITY :"subEntityTypesOf_",
STATE: "state"
STATE: "state",
PERSONA: "persona"
}
6 changes: 4 additions & 2 deletions generics/services/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ const configForStateLocation = function ( stateLocationCode, entityKey ) {
})
}

let subEntityData = subEntitiesDetails.data.form.data.fields[1].children.teacher;

let subEntityData = subEntitiesDetails.data.form.data.fields.filter((fieldInstance)=>{
return fieldInstance.code == messageConstants.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 3330c23

Please sign in to comment.