This repository has been archived by the owner on Nov 19, 2019. It is now read-only.
orderSubgroups seems to be using "old" information for ordering #127
Labels
bug
Something isn't working
I'm using a custom ordering function to order the subgroups alphabetically. However, when I update the subgroup of item 7 from
B
toC
withitems.update( item )
it seems that internally the item has not yet updated whenorderSubgroups
is called.As a result, I get an exception:
The output of the console.log in my ordering function is:
So you can see, it's still
B
instead ofC
.I have also added console.log messages to
orderSubgroups
:sortArray:
this.subgroups (only relevant parts):
As you can see, the item still has the old value, while the group has been updated correctly.
I'm using version 2.3.4
Additional info: The problem does not exist, if another item with subgroup
C
already exists during the initial creation of the timeline. It only happens if I change the item's subgroup to a subgroup that's not yet present.The text was updated successfully, but these errors were encountered: