Skip to content

Commit

Permalink
fix(src): pass output as a second param to evaluate arithmetic output
Browse files Browse the repository at this point in the history
  • Loading branch information
narekhovhannisyan committed Oct 21, 2024
1 parent 48892cb commit 72c6321
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/interfaces/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,13 @@ export const PluginFactory =
return outputs.map((output, index) => {
// Check if arithmetic expressions are enabled and outputParam exists, evaluate output parameter
const resultOutput = isArithmeticEnable && outputParam
? evaluateArithmeticOutput(outputParam, output[outputParam])
? evaluateArithmeticOutput(outputParam, output)
: output;

// Merge input if it exists, otherwise just use the output
const correspondingInput =
removeMappedInputParameter(inputs[index], mapping) || {};


return {
...correspondingInput,
...mapOutputIfNeeded(resultOutput, mapping),
Expand Down

0 comments on commit 72c6321

Please sign in to comment.