Skip to content

Commit

Permalink
fix: latest io mapping overwrite when duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
abdul99ahad committed Jan 7, 2025
1 parent 85ae140 commit 6db5e64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zeebe/util/feelUtility.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ function getIoExpression(variable, origin) {
return;
}

const mapping = mappings.find(mapping => mapping.target === variable.name);
const mapping = mappings.filter(mapping => mapping.target === variable.name).pop();

if (!mapping || !mapping.source) {
return;
Expand Down

0 comments on commit 6db5e64

Please sign in to comment.