Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
borkarsaish65 committed Oct 1, 2024
1 parent f1f39c6 commit 3c0d602
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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"
}
2 changes: 1 addition & 1 deletion generics/services/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const configForStateLocation = function ( stateLocationCode, entityKey ) {
}

let subEntityData = subEntitiesDetails.data.form.data.fields.filter((fieldInstance)=>{
return fieldInstance.code == 'persona'
return fieldInstance.code == messageConstants.common.PERSONA
})[0].children.administrator;

//Entity type is stored in a key called code
Expand Down

0 comments on commit 3c0d602

Please sign in to comment.