Merge loops function bugs

Hi @TheG, can you try the example from your last thread around this I shared here: Hubspot search node - #2 by MutedJam? (Also, I am so sorry I didn’t reply to you there yet. Your answer must have slipped through the cracks.)

I have tested the example shared over there. The code would be running in a Function node (not a Function Item node like in your workflow) which uses a different data structure and which I suspect is part of the reason your flow doesn’t work as expected.

Check our documentation on the difference between Function and Function Item (though I think there are plans to bring them together soon, so hopefully this will become easier in the future).