techradar
techradar copied to clipboard
fixing up an issue where the radar crashes if an outer layer is filled i...
...n without all inner layers filled in. i.e. if you have an item in hold and 3 in adopt with nothing in trial or assess the picture will not display without this fix.
I think this solves the same problem I was seeing. I did slightly differently since I didn't understand if the key thing was important. I just got a dataIndex (below) to use for the points, but I think it solves the same issue the for loop setup in this change addresses
My tweak for (var stageIdx in _(itemsByStage).keys()) { dataIndex = _(itemsByStage).keys()[stageIdx]