@overmap-ai/core 1.0.62-store-clear-fixes.3 → 1.0.62-store-clear-fixes.5

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.
@@ -2594,7 +2594,7 @@ var __publicField = (obj, key, value) => {
2594
2594
  )
2595
2595
  );
2596
2596
  return Object.values(submissions).filter(
2597
- (submission) => !issueTypeFormRevisions.has(submission.form_revision)
2597
+ (submission) => submission.issue === issueId && !issueTypeFormRevisions.has(submission.form_revision)
2598
2598
  );
2599
2599
  }
2600
2600
  )
@@ -2627,7 +2627,7 @@ var __publicField = (obj, key, value) => {
2627
2627
  }
2628
2628
  )
2629
2629
  );
2630
- const selectAttachedFormSubmissionsOfAssets = restructureCreateSelectorWithArgs(
2630
+ const selectAttachedFormSubmissionsOfAsset = restructureCreateSelectorWithArgs(
2631
2631
  toolkit.createSelector(
2632
2632
  [
2633
2633
  (state) => state.assetReducer.instances,
@@ -2650,7 +2650,7 @@ var __publicField = (obj, key, value) => {
2650
2650
  )
2651
2651
  );
2652
2652
  return Object.values(submissions).filter(
2653
- (submission) => !issueTypeFormRevisions.has(submission.form_revision)
2653
+ (submission) => submission.asset === assetId && !issueTypeFormRevisions.has(submission.form_revision)
2654
2654
  );
2655
2655
  }
2656
2656
  )
@@ -5770,7 +5770,7 @@ var __publicField = (obj, key, value) => {
5770
5770
  });
5771
5771
  for (const form of assetTypeFormsResult.forms)
5772
5772
  forms.push(form);
5773
- for (const revision of assetTypeFormsResult.latest_revisions)
5773
+ for (const revision of assetTypeFormsResult.revisions)
5774
5774
  revisions.push(revision);
5775
5775
  for (const attachment of assetTypeFormsResult.attachments)
5776
5776
  attachments.push(attachment);
@@ -5783,7 +5783,7 @@ var __publicField = (obj, key, value) => {
5783
5783
  });
5784
5784
  for (const form of issueTypeFormsResult.forms)
5785
5785
  forms.push(form);
5786
- for (const revision of issueTypeFormsResult.latest_revisions)
5786
+ for (const revision of issueTypeFormsResult.revisions)
5787
5787
  revisions.push(revision);
5788
5788
  for (const attachment of issueTypeFormsResult.attachments)
5789
5789
  attachments.push(attachment);
@@ -7536,7 +7536,7 @@ var __publicField = (obj, key, value) => {
7536
7536
  exports2.selectAssets = selectAssets;
7537
7537
  exports2.selectAssetsMapping = selectAssetsMapping;
7538
7538
  exports2.selectAssetsOfAssetType = selectAssetsOfAssetType;
7539
- exports2.selectAttachedFormSubmissionsOfAssets = selectAttachedFormSubmissionsOfAssets;
7539
+ exports2.selectAttachedFormSubmissionsOfAsset = selectAttachedFormSubmissionsOfAsset;
7540
7540
  exports2.selectAttachedFormSubmissionsOfIssue = selectAttachedFormSubmissionsOfIssue;
7541
7541
  exports2.selectAttachmentsOfAsset = selectAttachmentsOfAsset;
7542
7542
  exports2.selectAttachmentsOfAssetByType = selectAttachmentsOfAssetByType;