dtable-ui-component 6.0.23 → 6.0.24

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.
Files changed (2) hide show
  1. package/lib/utils/url.js +1 -1
  2. package/package.json +1 -1
package/lib/utils/url.js CHANGED
@@ -133,7 +133,7 @@ const getFileName = url => {
133
133
  validUrl = validUrl.slice(0, qIndex);
134
134
  }
135
135
  const lastIndex = validUrl.lastIndexOf('/');
136
- const name = url.slice(lastIndex + 1, qIndex);
136
+ const name = validUrl.slice(lastIndex + 1);
137
137
  return decodeURI(name);
138
138
  };
139
139
  exports.getFileName = getFileName;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.23",
3
+ "version": "6.0.24",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "4.0.2",