@overmap-ai/core 1.0.60-filter-improvements.0 → 1.0.60-filter-improvements.1

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.
@@ -2259,14 +2259,9 @@ const selectProjectFiles = createSelector(
2259
2259
  );
2260
2260
  const selectActiveProjectFileId = (state) => state.projectFileReducer.activeProjectFileId;
2261
2261
  const selectIsImportingProjectFile = (state) => state.projectFileReducer.isImportingProjectFile;
2262
- const selectProjectFileById = restructureCreateSelectorWithArgs(
2263
- createSelector(
2264
- [selectProjectFileMapping, (_, projectFileId) => projectFileId],
2265
- (projectFileMapping, projectFileId) => {
2266
- return projectFileMapping[projectFileId];
2267
- }
2268
- )
2269
- );
2262
+ const selectProjectFileById = (id) => (state) => {
2263
+ return state.projectFileReducer.projectFiles[id];
2264
+ };
2270
2265
  const projectFileReducer = projectFileSlice.reducer;
2271
2266
  const projectAttachmentAdapter = createModelAdapter((attachment) => attachment.offline_id);
2272
2267
  const initialState$h = projectAttachmentAdapter.getInitialState({});
@@ -3289,9 +3284,9 @@ const {
3289
3284
  } = geoImageSlice.actions;
3290
3285
  const selectGeoImageMapping = (state) => state.geoImageReducer.instances;
3291
3286
  const selectGeoImages = (state) => Object.values(state.geoImageReducer.instances);
3292
- const selectGeoImageById = restructureCreateSelectorWithArgs(
3293
- createSelector([selectGeoImageMapping, (_, id) => id], (mapImageMapping, id) => mapImageMapping[id])
3294
- );
3287
+ const selectGeoImageById = (id) => (state) => {
3288
+ return state.geoImageReducer.instances[id];
3289
+ };
3295
3290
  const selectGeoImagesOfProject = restructureCreateSelectorWithArgs(
3296
3291
  createSelector([selectGeoImages, (_, projectId) => projectId], (mapImages, projectId) => {
3297
3292
  return mapImages.filter((mapImage) => mapImage.project === projectId);
@@ -7147,7 +7142,6 @@ class GeoImageService extends BaseUploadService {
7147
7142
  });
7148
7143
  }
7149
7144
  store.dispatch(addGeoImages(offlineGeoImages));
7150
- console.debug("offlineGeoImages", offlineGeoImages);
7151
7145
  const promise = this.enqueueRequest({
7152
7146
  description: "Bulk add geo images",
7153
7147
  method: HttpMethod.POST,