Map variable not saving correctly?

image
This is returning a copy of the element in the Map, so when you modify it, it doesn’t modify the one in the Map.

To fix that, you need to update the element in the Map and not just a copy. For arrays there is a “FIND by ref” node which helps, but it doesn’t exist for maps apparently. So you have to modify the copy of the element, then insert it back into the main map, like so :