Skip to content

Commit

Permalink
correction
Browse files Browse the repository at this point in the history
  • Loading branch information
borkarsaish65 committed Oct 3, 2024
1 parent cfbaafc commit 3048c5e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion generics/services/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ const configForStateLocation = function ( stateLocationCode, entityKey ) {

//Entity type is stored in a key called code
let subEntities = subEntityData.filter( subEntity => {
if(allowedLocationFields.includes(subEntity.code)) return subEntity.code;
if(allowedLocationFields.includes(subEntity.code)){
return true;
}else {
return false;
}
}).map(subEntity => subEntity.code)
//set cache data for given state
let setCache = cache.setValue(entityKey, subEntities, messageConstants.common.CACHE_TTL);
Expand Down

0 comments on commit 3048c5e

Please sign in to comment.