@overmap-ai/core 1.0.51-bulk-form-submission.4 → 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 = {};
@@ -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,