From fe1ee89c0c989d8fd7a92958c74f9bcceb03d5f2 Mon Sep 17 00:00:00 2001 From: Abdul Ahad Date: Mon, 16 Dec 2024 21:39:26 +0500 Subject: [PATCH] fix: latest io mapping overwrite when duplicates --- lib/zeebe/util/feelUtility.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zeebe/util/feelUtility.js b/lib/zeebe/util/feelUtility.js index 24fd387..ebbbb92 100644 --- a/lib/zeebe/util/feelUtility.js +++ b/lib/zeebe/util/feelUtility.js @@ -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;