@overmap-ai/core 1.0.46-project-attachments.1 → 1.0.46-project-attachments.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.
@@ -7306,11 +7306,12 @@ var __publicField = (obj, key, value) => {
7306
7306
  `attempting to update a document with offline_id ${document2.offline_id} that does not exist in store.documents`
7307
7307
  );
7308
7308
  }
7309
- store.dispatch(updateDocuments([documentToBeUpdated]));
7309
+ store.dispatch(updateDocuments([document2]));
7310
7310
  const promise = this.enqueueRequest({
7311
7311
  description: "Delete Document",
7312
- method: HttpMethod.DELETE,
7312
+ method: HttpMethod.PATCH,
7313
7313
  url: `/documents/${document2.offline_id}`,
7314
+ payload: document2,
7314
7315
  blockers: [document2.offline_id],
7315
7316
  blocks: [document2.offline_id]
7316
7317
  });