Skip to content

Commit

Permalink
paired collection items are now also reversed like history
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedhamidawan committed Nov 19, 2024
1 parent 0e0372c commit 5caf355
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/src/components/Collections/PairCollectionCreator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ function _elementsSetUp() {
// copy initial list, sort, add ids if needed
workingElements.value = JSON.parse(JSON.stringify(props.initialElements.slice(0)));
// reverse the order of the elements to emulate what we have in the history panel
workingElements.value.reverse();
_ensureElementIds();
_validateElements();
}
Expand Down

0 comments on commit 5caf355

Please sign in to comment.