@overmap-ai/core 1.0.58-map-images.2 → 1.0.58-map-images.4

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);
@@ -8835,7 +8837,7 @@ class MapImageService extends BaseFileUploadService {
8835
8837
  store.dispatch(updateMapImage(updatedMapImage));
8836
8838
  const promise = this.client.enqueueRequest({
8837
8839
  description: "Update map image",
8838
- method: HttpMethod.PUT,
8840
+ method: HttpMethod.PATCH,
8839
8841
  url: `/projects/map-images/${mapImagePayload.offline_id}/`,
8840
8842
  payload: mapImagePayload,
8841
8843
  blocks: [mapImagePayload.offline_id],