setIn not working on variable

I'm trying to use setIn to set a property on a variable I named storage. Somehow, it doesn't work. I think I'm missing something.

Even with the console it doesn't work. setValue does work. I do not get an error.

1 Like

Hey there @Steven_W,

So I think setIn is expecting an array in order to insert the value. I've tried adding {} in the variable's initial value and that made it work.

1 Like