@seafile/sdoc-editor 0.2.5-beta1 → 0.2.5-beta2

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.
@@ -10,7 +10,7 @@ var SeafileAPI = /*#__PURE__*/function () {
10
10
  return _this.req.delete(url);
11
11
  };
12
12
  this.deleteSdocOtherRevision = function (docUuid, revisionId) {
13
- var url = 'api/v2.1/seadoc/delete-revision/' + docUuid + '/?revision_id=' + revisionId;
13
+ var url = 'api/v2.1/seadoc/delete-revision/' + docUuid + '/' + revisionId + '/';
14
14
  // let formData = new FormData();
15
15
  // formData.append('revision_id', revisionId);
16
16
  return _this.req.delete(url);
@@ -130,7 +130,7 @@ var RevisionsDialog = function RevisionsDialog(_ref) {
130
130
  return;
131
131
  }
132
132
  var revision = revisions[revisionIndex];
133
- context.deleteSdocOtherRevision(revision.docUuid).then(function (res) {
133
+ context.deleteSdocOtherRevision(revision.id).then(function (res) {
134
134
  var newRevisions = revisions.slice(0);
135
135
  newRevisions.splice(revisionIndex, 1);
136
136
  updateRevisionsCount(newRevisions.length);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "0.2.5beta1",
3
+ "version": "0.2.5beta2",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",