oa-componentbook 1.0.1-stage.414 → 1.0.1-stage.415
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.
|
@@ -137,7 +137,7 @@ function DocumentUpload(_ref) {
|
|
|
137
137
|
if (antDesignProps !== null && antDesignProps !== void 0 && antDesignProps.customRequest) {
|
|
138
138
|
const isMaxFileSize = newFileList.some(f => {
|
|
139
139
|
var _f$error;
|
|
140
|
-
return (f === null || f === void 0 || (_f$error = f.error) === null || _f$error === void 0 ? void 0 : _f$error.status)
|
|
140
|
+
return (f === null || f === void 0 || (_f$error = f.error) === null || _f$error === void 0 ? void 0 : _f$error.status) === "MAX_FILE_SIZE";
|
|
141
141
|
});
|
|
142
142
|
if (isMaxFileSize) {
|
|
143
143
|
setFileList([]);
|