You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my case, for the functionality to add a new chapter after the currently selected one, I wait until a chapter is created, then immediately execute study.makeChange('sortChapters', newOrder) or study.chapters.sort(newOrder), doesn't matter which. A 'chapters' message is received with the original sort order, not the one sent.
What did you expect to happen?
I expected the chapters to be reordered correctly.
What happened instead?
The chapters remain in the same order, but they do have the correct order if refreshing the page, meaning the 'chapters' message received is wrong.
Operating system
Windows 11
Browser and version (or alternate access method)
Brave
Additional information
If the 'sortChapters' is sent with a timeout of one second, then the reply comes correctly and everything works as expected.
Exact URL of where the bug happened
In any study you own
Steps to reproduce the bug
In my case, for the functionality to add a new chapter after the currently selected one, I wait until a chapter is created, then immediately execute
study.makeChange('sortChapters', newOrder)
orstudy.chapters.sort(newOrder)
, doesn't matter which. A 'chapters' message is received with the original sort order, not the one sent.What did you expect to happen?
I expected the chapters to be reordered correctly.
What happened instead?
The chapters remain in the same order, but they do have the correct order if refreshing the page, meaning the 'chapters' message received is wrong.
Operating system
Windows 11
Browser and version (or alternate access method)
Brave
Additional information
If the 'sortChapters' is sent with a timeout of one second, then the reply comes correctly and everything works as expected.
Data:
The text was updated successfully, but these errors were encountered: