@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.
- package/dist/overmap-core.js +1 -5
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +1 -5
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/store/slices/projectFileSlice.d.ts +4 -3
- package/dist/typings/models/geo.d.ts +5 -14
- package/dist/utils/coordinates.d.ts +3 -3
- package/package.json +1 -1
|
@@ -5079,13 +5079,9 @@ var __publicField = (obj, key, value) => {
|
|
|
5079
5079
|
const { store } = this.client;
|
|
5080
5080
|
const state = store.getState();
|
|
5081
5081
|
const activeProjectFileId = state.projectFileReducer.activeProjectFileId;
|
|
5082
|
-
const activeProjectId = state.projectReducer.activeProjectId;
|
|
5083
5082
|
if (!activeProjectFileId) {
|
|
5084
5083
|
throw new Error("No active project file");
|
|
5085
5084
|
}
|
|
5086
|
-
if (!activeProjectId) {
|
|
5087
|
-
throw new Error("No active project");
|
|
5088
|
-
}
|
|
5089
5085
|
const activeProjectFile = state.projectFileReducer.projectFiles[activeProjectFileId];
|
|
5090
5086
|
if (!activeProjectFile) {
|
|
5091
5087
|
throw new Error("No active project file");
|
|
@@ -5110,7 +5106,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5110
5106
|
this.client.files.uploadFileToS3(activeProjectFile.file_sha1).then(([fileProps]) => {
|
|
5111
5107
|
resolve({
|
|
5112
5108
|
method: HttpMethod.POST,
|
|
5113
|
-
url: `/projects/${
|
|
5109
|
+
url: `/projects/${activeProjectFile.project}/files/`,
|
|
5114
5110
|
payload: {
|
|
5115
5111
|
...activeProjectFile,
|
|
5116
5112
|
...fileProps
|