Pushing a local var updates the global one

Hi, Im spending lots of hours without success nor understanding why it happens.
I have a global variable (an array) stored in filesystem. In a function node I put a local variable equal to the global one. Then, working on the local variable I push the incoming message, but at each deployng the the global variable is updated. I don't put global.set(...) and I don't want to change the global variable. How can I solve it? Thanks a lot
This are the function node and the global variables before deploying


This are the debug nodes and the global variables after the first deploying

This are the debug nodes and the global variables after the second deploying

Please see this topic for the explanation of this behaviour:

Thanks Knolleary. This happen only for global, not for flow, is that correct?
Thanks a lot

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.