In recent weeks Tenor reduced the number of featured categories from 58 to 57 which revealed a critical flaw in the categories rendering code.
Picker has a built-in system that removes a couple of last categories when they can't be divided by column count so there are not any half-filled rows at the end. This system apparently breaks when there are no columns to remove since:
categories.slice(0, -1); // removes last 1 category
categories.slice(0, -0); // removes all categories, for some reason
In recent weeks Tenor reduced the number of featured categories from
58
to57
which revealed a critical flaw in the categories rendering code.Picker has a built-in system that removes a couple of last categories when they can't be divided by column count so there are not any half-filled rows at the end. This system apparently breaks when there are no columns to remove since:
This PR fixes that: