dtable-ui-component 5.2.14 → 5.2.15

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.
@@ -116,7 +116,14 @@ class ImagesLazyLoad extends _react.default.Component {
116
116
  }, /*#__PURE__*/_react.default.createElement(_Loading.default, null));
117
117
  }
118
118
  return loadedImages.map((image, index) => {
119
- let imageName = image.slice(image.src.lastIndexOf('/') + 1);
119
+ let imageName = '';
120
+ const imageSrc = image === null || image === void 0 ? void 0 : image.src;
121
+ try {
122
+ imageName = imageSrc ? decodeURI(imageSrc.slice(imageSrc.lastIndexOf('/') + 1)) : '';
123
+ } catch (error) {
124
+ // eslint-disable-next-line no-console
125
+ console.log(error);
126
+ }
120
127
  const imgDom = /*#__PURE__*/_react.default.createElement("img", {
121
128
  title: imageName,
122
129
  className: "image-item",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "5.2.14",
3
+ "version": "5.2.15",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "3.0.1",