@overmap-ai/core 1.0.71-mapbox.2 → 1.0.71-mapbox.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.
@@ -5090,13 +5090,9 @@ class ProjectFileService extends BaseApiService {
5090
5090
  const { store } = this.client;
5091
5091
  const state = store.getState();
5092
5092
  const activeProjectFileId = state.projectFileReducer.activeProjectFileId;
5093
- const activeProjectId = state.projectReducer.activeProjectId;
5094
5093
  if (!activeProjectFileId) {
5095
5094
  throw new Error("No active project file");
5096
5095
  }
5097
- if (!activeProjectId) {
5098
- throw new Error("No active project");
5099
- }
5100
5096
  const activeProjectFile = state.projectFileReducer.projectFiles[activeProjectFileId];
5101
5097
  if (!activeProjectFile) {
5102
5098
  throw new Error("No active project file");
@@ -5121,7 +5117,7 @@ class ProjectFileService extends BaseApiService {
5121
5117
  this.client.files.uploadFileToS3(activeProjectFile.file_sha1).then(([fileProps]) => {
5122
5118
  resolve({
5123
5119
  method: HttpMethod.POST,
5124
- url: `/projects/${activeProjectId}/files/`,
5120
+ url: `/projects/${activeProjectFile.project}/files/`,
5125
5121
  payload: {
5126
5122
  ...activeProjectFile,
5127
5123
  ...fileProps