This is amazing!
However, I’m having a hell of a time doing something that should be quite simple, such as filtering out 0 values from my final sorted list.
At the end of the JS, before returning the list, I have:
filtered_sets = sorted_sets.filter (sorted_sets => sorted_sets.value > 0);
Then, instead of returning
sorted_sets, I return
Sounds pretty easy, but instead of my resultant list having anything in it, it’s empty, like it needs to know how many values are going into it before it’s rendered. And because the initial set has nothing in it (all values are 0 before stuff is done on the page), it is expecting 0 results.
Logging to the colsole shows there’s nothing wrong with my JS - see the sorted set vs the filtered set:
It’s just that the final repeating group is just being stubborn and saying - sorry, you should have told me how many values were going to be here in the beginning - I got nuffin and I’m staying with nuffin.
Is this a bug?