@overmap-ai/core 1.0.58-map-images.2 → 1.0.58-map-images.3
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.
|
@@ -4606,9 +4606,11 @@ var __publicField = (obj, key, value) => {
|
|
|
4606
4606
|
deleteMapImage,
|
|
4607
4607
|
deleteMapImages
|
|
4608
4608
|
} = mapImageSlice.actions;
|
|
4609
|
-
const selectMapImageMapping = (state) => state.models;
|
|
4610
|
-
const selectMapImages = (state) => Object.values(state.models);
|
|
4611
|
-
const selectMapImageById = (
|
|
4609
|
+
const selectMapImageMapping = (state) => state.mapImageReducer.models;
|
|
4610
|
+
const selectMapImages = (state) => Object.values(state.mapImageReducer.models);
|
|
4611
|
+
const selectMapImageById = restructureCreateSelectorWithArgs(
|
|
4612
|
+
toolkit.createSelector([selectMapImageMapping, (_, id) => id], (mapImageMapping, id) => mapImageMapping[id])
|
|
4613
|
+
);
|
|
4612
4614
|
const selectMapImagesOfProject = restructureCreateSelectorWithArgs(
|
|
4613
4615
|
toolkit.createSelector([selectMapImages, (_, projectId) => projectId], (mapImages, projectId) => {
|
|
4614
4616
|
return mapImages.filter((mapImage) => mapImage.project === projectId);
|