Array in struct not beeing updated

Hi,

So I have a struct which only has an array in it.
I create a map where the keys are enum values and the values are that array.

I created this setup to populate it:

And the upper part is called and it returns the index 1 (I`m only trying with two items at the moment) but when I print the array it only has the initial item, not the newly added one.

I read some other posts but as they were a little old, I wanted to check what is wrong with this particular setup.
Can anyone help me?