Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add check when removing handlers from orchestrator (#2831)
## Description #2819 removed changes made in #2802. After further investigation we found out that `removeHandlerFromOrchestrator` didn't check if handlers were present in orchestrator, therefore in some situation calling this function ended up in removing wrong handler. Calling `indexOf` returned `-1` and, as you can read in [docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice): > Negative index counts back from the end of the array So instead of ignoring that, we simply removed wrong handler. ## Test plan Tested on example app (mostly on swipeable example) and example code from #2819
- Loading branch information