@seafile/sdoc-editor 3.0.131 → 3.0.133

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.
@@ -133,8 +133,9 @@ var LinkedPagesForm = function LinkedPagesForm(_ref) {
133
133
  var depth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
134
134
  var isFromSearch = arguments.length > 3 ? arguments[3] : undefined;
135
135
  var page = wikiPageList.find(function (p) {
136
- return p.id === item.id;
136
+ return (p === null || p === void 0 ? void 0 : p.id) === item.id;
137
137
  });
138
+ if (!page) return null;
138
139
  if (isFromSearch) {
139
140
  page.isDir = false;
140
141
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "3.0.131",
3
+ "version": "3.0.133",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -20,7 +20,7 @@
20
20
  "@seafile/comment-editor": "1.0.22",
21
21
  "@seafile/print-js": "1.6.6",
22
22
  "@seafile/react-image-lightbox": "5.0.4",
23
- "@seafile/seafile-database": "0.0.45",
23
+ "@seafile/seafile-database": "0.0.46",
24
24
  "@seafile/slate": "0.91.8",
25
25
  "@seafile/slate-history": "0.86.2",
26
26
  "@seafile/slate-hyperscript": "0.81.7",
@@ -72,5 +72,5 @@
72
72
  "publishConfig": {
73
73
  "access": "public"
74
74
  },
75
- "gitHead": "54650092847c7bca405447086d738b39d5f0c895"
75
+ "gitHead": "562452ea14e7ae4b1e9f9c9c1d77334d780edbbd"
76
76
  }