Skip to content

Commit

Permalink
#25896 #24415 feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
erickgonzalez committed Aug 30, 2023
1 parent 6b32cd3 commit 95f1622
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -406,16 +406,14 @@
function mapToCheckCurrentLangExists(listRelationships){
const idExists = new Map();
for (var indexK = 0; indexK < listRelationships.length; indexK++) {
idExists.set(listRelationships[indexK]['identifier'], false);
for (var indexL = 0; indexL < listRelationships.length; indexL++) {
if(listRelationships[indexK]['identifier'] == listRelationships[indexL]['identifier'] &&
listRelationships[indexL]['langId'] == <%= contentlet.getLanguageId() %>) {
idExists.set(listRelationships[indexK]['identifier'], true);
break;
}
}
if(!idExists.has(listRelationships[indexK]['identifier'])) {
idExists.set(listRelationships[indexK]['identifier'], false);
}
}
return idExists;
}
Expand Down

0 comments on commit 95f1622

Please sign in to comment.