@seafile/sdoc-editor 0.1.143-beta3 → 0.1.143-beta4
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.
|
@@ -275,7 +275,7 @@ var SimpleEditor = function SimpleEditor(_ref) {
|
|
|
275
275
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
276
276
|
}, []);
|
|
277
277
|
var deleteRevision = useCallback(function () {
|
|
278
|
-
context.
|
|
278
|
+
context.deleteSdocRevision().then(function (res) {
|
|
279
279
|
if (res.data.success) {
|
|
280
280
|
var repoID = context.getSetting('repoID');
|
|
281
281
|
var siteRoot = context.getSetting('siteRoot');
|