@overmap-ai/core 1.0.60-forms-removal.8 → 1.0.60-forms-removal.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2534,7 +2534,8 @@ var __publicField = (obj, key, value) => {
2534
2534
  };
2535
2535
  const selectLatestFormRevisionOfForm = restructureCreateSelectorWithArgs(
2536
2536
  toolkit.createSelector([selectFormRevisions, (_state, formId) => formId], (revisions, formId) => {
2537
- return revisions.filter((revision) => revision.form === formId).sort(formRevisionSortFn).pop();
2537
+ const sortedRevisions = revisions.filter((revision) => revision.form === formId).sort(formRevisionSortFn).reverse();
2538
+ return sortedRevisions.length > 0 ? sortedRevisions[0] : void 0;
2538
2539
  })
2539
2540
  );
2540
2541
  const selectFormRevisionsOfForm = restructureCreateSelectorWithArgs(