cloud-b2b 1.1.41 → 1.1.42
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.
|
@@ -280,7 +280,7 @@ function SuperUpload(props) {
|
|
|
280
280
|
return _fetchImgData.apply(this, arguments);
|
|
281
281
|
}
|
|
282
282
|
fetchImgData();
|
|
283
|
-
}, [props.fileList]);
|
|
283
|
+
}, [props.fileList.length > 0 ? props.fileList : fileList]);
|
|
284
284
|
var onPreview = /*#__PURE__*/function () {
|
|
285
285
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(file) {
|
|
286
286
|
return _regeneratorRuntime.wrap(function _callee3$(_context4) {
|
|
@@ -292,7 +292,7 @@ function SuperUpload(props) {
|
|
|
292
292
|
return _fetchImgData.apply(this, arguments);
|
|
293
293
|
}
|
|
294
294
|
fetchImgData();
|
|
295
|
-
}, [props.fileList]);
|
|
295
|
+
}, [props.fileList.length > 0 ? props.fileList : fileList]);
|
|
296
296
|
var onPreview = /*#__PURE__*/function () {
|
|
297
297
|
var _ref4 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(file) {
|
|
298
298
|
return _regenerator["default"].wrap(function _callee3$(_context4) {
|