Cant update by-ref struct

Im am still confused as to why the local variable is needed why I couldn’t just brake the struct off the find node edit it then re-add it back into the map from there its supposed to be by-ref right but what ever this worked