@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.
@@ -4616,9 +4616,11 @@ const {
4616
4616
  deleteMapImage,
4617
4617
  deleteMapImages
4618
4618
  } = mapImageSlice.actions;
4619
- const selectMapImageMapping = (state) => state.models;
4620
- const selectMapImages = (state) => Object.values(state.models);
4621
- const selectMapImageById = (id) => (state) => state.models[id];
4619
+ const selectMapImageMapping = (state) => state.mapImageReducer.models;
4620
+ const selectMapImages = (state) => Object.values(state.mapImageReducer.models);
4621
+ const selectMapImageById = restructureCreateSelectorWithArgs(
4622
+ createSelector([selectMapImageMapping, (_, id) => id], (mapImageMapping, id) => mapImageMapping[id])
4623
+ );
4622
4624
  const selectMapImagesOfProject = restructureCreateSelectorWithArgs(
4623
4625
  createSelector([selectMapImages, (_, projectId) => projectId], (mapImages, projectId) => {
4624
4626
  return mapImages.filter((mapImage) => mapImage.project === projectId);