@overmap-ai/core 1.0.46-project-attachments.2 → 1.0.46-project-attachments.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.
@@ -7299,6 +7299,9 @@ class DocumentService extends BaseApiService {
7299
7299
  method: HttpMethod.POST,
7300
7300
  url: `/projects/${activeProjectId}/create-document/`,
7301
7301
  payload: { ...offlineDocument },
7302
+ queryParams: {
7303
+ parent_document: offlineDocument.parent_document ?? void 0
7304
+ },
7302
7305
  // if adding as a child of another document, need that document to exist first
7303
7306
  blockers: offlineDocument.parent_document ? [offlineDocument.parent_document] : [],
7304
7307
  blocks: [offlineDocument.offline_id]
@@ -7316,11 +7319,12 @@ class DocumentService extends BaseApiService {
7316
7319
  `attempting to update a document with offline_id ${document2.offline_id} that does not exist in store.documents`
7317
7320
  );
7318
7321
  }
7319
- store.dispatch(updateDocuments([documentToBeUpdated]));
7322
+ store.dispatch(updateDocuments([document2]));
7320
7323
  const promise = this.enqueueRequest({
7321
7324
  description: "Delete Document",
7322
7325
  method: HttpMethod.PATCH,
7323
7326
  url: `/documents/${document2.offline_id}`,
7327
+ payload: document2,
7324
7328
  blockers: [document2.offline_id],
7325
7329
  blocks: [document2.offline_id]
7326
7330
  });