@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.
@@ -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 = (id) => (state) => state.models[id];
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);
@@ -8825,7 +8827,7 @@ var __publicField = (obj, key, value) => {
8825
8827
  store.dispatch(updateMapImage(updatedMapImage));
8826
8828
  const promise = this.client.enqueueRequest({
8827
8829
  description: "Update map image",
8828
- method: HttpMethod.PUT,
8830
+ method: HttpMethod.PATCH,
8829
8831
  url: `/projects/map-images/${mapImagePayload.offline_id}/`,
8830
8832
  payload: mapImagePayload,
8831
8833
  blocks: [mapImagePayload.offline_id],