@seafile/sdoc-editor 1.0.198-test2.3 → 1.0.198-test2.5

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.
@@ -53,7 +53,7 @@ const SelectSdocFileDialog = _ref => {
53
53
  const {
54
54
  insertFileLinkCallback,
55
55
  insertSdocFileLinkCallback
56
- } = insertLinkCallback;
56
+ } = insertLinkCallback || {};
57
57
  switch (dialogType) {
58
58
  case _constants.ELEMENT_TYPE.FILE_LINK:
59
59
  insertFileLinkCallback && insertFileLinkCallback(editor, fileInfo.name, fileInfo.file_uuid);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "1.0.198-test2.3",
3
+ "version": "1.0.198-test2.5",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",