@overmap-ai/core 1.0.63-selector-standardization.6 → 1.0.63-selector-standardization.7

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.
@@ -1000,13 +1000,16 @@ const {
1000
1000
  setAssets
1001
1001
  } = assetSlice.actions;
1002
1002
  let prevAssets = null;
1003
- const selectAssets = (state) => {
1003
+ const _selectAssets = (state) => {
1004
1004
  if (!prevAssets) {
1005
1005
  prevAssets = Object.values(state.assetReducer.instances);
1006
1006
  }
1007
1007
  return prevAssets;
1008
1008
  };
1009
1009
  const selectAssetsMapping = (state) => state.assetReducer.instances;
1010
+ const selectAssets = createSelector([selectAssetsMapping], (assetsMapping) => {
1011
+ return Object.values(assetsMapping);
1012
+ });
1010
1013
  const selectAssetsOfAssetType = restructureCreateSelectorWithArgs(
1011
1014
  createSelector([selectAssets, (_state, assetTypeId) => assetTypeId], (components, assetTypeId) => {
1012
1015
  return components.filter((asset) => asset.asset_type === assetTypeId);
@@ -7568,6 +7571,7 @@ export {
7568
7571
  VerificationCodeType,
7569
7572
  WorkspaceService,
7570
7573
  YELLOW,
7574
+ _selectAssets,
7571
7575
  _selectLatestFormRevision,
7572
7576
  _setLatestRetryTime,
7573
7577
  acceptProjectInvite,