@overmap-ai/core 1.0.63-form-submission-drafts.4 → 1.0.63-form-submission-drafts.6
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.
package/dist/overmap-core.js
CHANGED
|
@@ -1011,6 +1011,17 @@ const selectAssetsOfAssetType = restructureCreateSelectorWithArgs(
|
|
|
1011
1011
|
const selectAsset = (assetId) => (state) => {
|
|
1012
1012
|
return state.assetReducer.instances[assetId];
|
|
1013
1013
|
};
|
|
1014
|
+
const selectAssetsByIds = restructureCreateSelectorWithArgs(
|
|
1015
|
+
createSelector([selectAssetsMapping, (_, assetIds) => assetIds], (assetsMapping, assetIds) => {
|
|
1016
|
+
const assets = [];
|
|
1017
|
+
for (const assetId of assetIds) {
|
|
1018
|
+
const asset = assetsMapping[assetId];
|
|
1019
|
+
if (asset)
|
|
1020
|
+
assets.push(asset);
|
|
1021
|
+
}
|
|
1022
|
+
return assets;
|
|
1023
|
+
})
|
|
1024
|
+
);
|
|
1014
1025
|
const selectAssetToAssetTypeMapping = createSelector(
|
|
1015
1026
|
[selectAssets, selectAssetTypesMapping],
|
|
1016
1027
|
(assets, assetTypeMapping) => {
|
|
@@ -7838,6 +7849,7 @@ export {
|
|
|
7838
7849
|
selectAssetTypesFromIds,
|
|
7839
7850
|
selectAssetTypesMapping,
|
|
7840
7851
|
selectAssets,
|
|
7852
|
+
selectAssetsByIds,
|
|
7841
7853
|
selectAssetsMapping,
|
|
7842
7854
|
selectAssetsOfAssetType,
|
|
7843
7855
|
selectAttachedFormSubmissionsOfAsset,
|