@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.
@@ -1563,6 +1563,9 @@ var __publicField = (obj, key, value) => {
1563
1563
  hiddenCategoryCount++;
1564
1564
  return hiddenCategoryCount;
1565
1565
  };
1566
+ const selectIssueCountOfCategory = (categoryId) => (state) => {
1567
+ return Object.values(state.issueReducer.issues).filter((issue) => issue.category === categoryId).length;
1568
+ };
1566
1569
  const categoryReducer = categorySlice.reducer;
1567
1570
  function setAttachments(state, action) {
1568
1571
  state.attachments = {};
@@ -3641,7 +3644,7 @@ var __publicField = (obj, key, value) => {
3641
3644
  }
3642
3645
  for (const revision of Object.values(revisions)) {
3643
3646
  const form = formsOfComponentTypes[revision.form];
3644
- if (!form || !form.component_type || !ret[form.component_type] || formRevisionSortFn(ret[form.component_type], revision) < 0)
3647
+ if (!form || !form.component_type || ret[form.component_type] && formRevisionSortFn(ret[form.component_type], revision) > 0)
3645
3648
  continue;
3646
3649
  ret[form.component_type] = revision;
3647
3650
  }
@@ -16261,6 +16264,7 @@ var __publicField = (obj, key, value) => {
16261
16264
  exports2.selectIssueAttachment = selectIssueAttachment;
16262
16265
  exports2.selectIssueAttachmentMapping = selectIssueAttachmentMapping;
16263
16266
  exports2.selectIssueAttachments = selectIssueAttachments;
16267
+ exports2.selectIssueCountOfCategory = selectIssueCountOfCategory;
16264
16268
  exports2.selectIssueMapping = selectIssueMapping;
16265
16269
  exports2.selectIssueUpdateMapping = selectIssueUpdateMapping;
16266
16270
  exports2.selectIssueUpdatesOfIssue = selectIssueUpdatesOfIssue;