Closed tanmay1100 closed 4 weeks ago
Summary: The user is experiencing unexpected behavior when removing an empty string key from a map. The remove
operation seems to be affecting other entries in the map, specifically the "No Data" entry, which is not expected.
You will have to provide a runnable reproduction of the problem. It is not really possible to figure out what is going wrong just by looking at the snippet of the code.
If there is indeed a bug - it can be in many places.
Yeah going to look more into it on my end, pivoting to a different approach rn, will update with a runnable reproduction asap
This is the relevant code:
This code, results in one of the maps being this:
Which is good. That's the intended result. But when i uncomment this snippet:
The map turns into this:
When i was expecting:
Why is this happening? When i remove the entry with the key set to the empty string, shouldn't it just remove that and be done? Why is it messing with the 'No Data' field?