mirror of
https://github.com/usebruno/bruno.git
synced 2025-01-11 16:38:19 +01:00
978d810473
When dragging and dropping items, to delay changing sequence numbers until after all the resource-dependent logic has completed, we were relying on the order of children in redux store (which we then converted into new seq numbers). This order of children was however not updated when sequence numbers changed (for example due to file watch changes). This resulted in a seemingly random drag-and-drop ordering, which in fact was linked to the initial order when the collection was loaded. This change sorts all the items by sequence number prior to reordering, so that those random jumps no longer happen. As this happens on a deep clone of the collection, no data gets hurt in the process. fixes #154 |
||
---|---|---|
.. | ||
public | ||
src | ||
.babelrc | ||
.env.prod | ||
.gitignore | ||
.prettierrc.json | ||
jsconfig.json | ||
next.config.js | ||
package.json |