1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/src
Christopher Kolstad 791384ddb1
Fix/variants ordering (#1187)
* fix: sort variants on output

We found that for existing variants, the sorting by name wasn't applied, so the index in the patches were wrong. This PR adds the sort also when we're getting variants as part of the getFeature call, not just when we're getting the variants. This should make the UX consistent, and prevent our patches from hitting the wrong index in the variants array.

Co-authored-by: Youssef Khedher <khedher.youssef@hotmail.fr>
2021-12-15 14:20:32 +01:00
..
lib Fix/variants ordering (#1187) 2021-12-15 14:20:32 +01:00
mailtemplates
migrations
test Fix/variants ordering (#1187) 2021-12-15 14:20:32 +01:00
migrator.ts
server-dev.ts fix: add migration 2021-11-09 11:52:02 +01:00
server.ts