@overmap-ai/core 1.0.51-bulk-form-submission.3 → 1.0.51-hover-cards.0

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.
@@ -1572,6 +1572,9 @@ const selectHiddenCategoryCount = (state) => {
1572
1572
  hiddenCategoryCount++;
1573
1573
  return hiddenCategoryCount;
1574
1574
  };
1575
+ const selectIssueCountOfCategory = (categoryId) => (state) => {
1576
+ return Object.values(state.issueReducer.issues).filter((issue) => issue.category === categoryId).length;
1577
+ };
1575
1578
  const categoryReducer = categorySlice.reducer;
1576
1579
  function setAttachments(state, action) {
1577
1580
  state.attachments = {};
@@ -3650,7 +3653,7 @@ const selectLatestFormRevisionsOfComponentTypes = restructureCreateSelectorWithA
3650
3653
  }
3651
3654
  for (const revision of Object.values(revisions)) {
3652
3655
  const form = formsOfComponentTypes[revision.form];
3653
- if (!form || !form.component_type || !ret[form.component_type] || formRevisionSortFn(ret[form.component_type], revision) < 0)
3656
+ if (!form || !form.component_type || ret[form.component_type] && formRevisionSortFn(ret[form.component_type], revision) > 0)
3654
3657
  continue;
3655
3658
  ret[form.component_type] = revision;
3656
3659
  }
@@ -16271,6 +16274,7 @@ export {
16271
16274
  selectIssueAttachment,
16272
16275
  selectIssueAttachmentMapping,
16273
16276
  selectIssueAttachments,
16277
+ selectIssueCountOfCategory,
16274
16278
  selectIssueMapping,
16275
16279
  selectIssueUpdateMapping,
16276
16280
  selectIssueUpdatesOfIssue,