@shipstatic/drop 1.0.0 → 1.0.1
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.
- package/dist/index.cjs +2 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -10247,7 +10247,7 @@ function useDrop(options) {
|
|
|
10247
10247
|
const clientError = {
|
|
10248
10248
|
error: isValidation ? "Validation Failed" : "Processing Failed",
|
|
10249
10249
|
details: isValidation ? message : `Failed to process files: ${message}`,
|
|
10250
|
-
errors:
|
|
10250
|
+
errors: [],
|
|
10251
10251
|
isClientError: true
|
|
10252
10252
|
};
|
|
10253
10253
|
setState({
|
|
@@ -10257,8 +10257,7 @@ function useDrop(options) {
|
|
|
10257
10257
|
needsBuild: false,
|
|
10258
10258
|
status: {
|
|
10259
10259
|
title: clientError.error,
|
|
10260
|
-
details: clientError.details
|
|
10261
|
-
...clientError.errors.length > 0 && { errors: clientError.errors }
|
|
10260
|
+
details: clientError.details
|
|
10262
10261
|
}
|
|
10263
10262
|
});
|
|
10264
10263
|
onValidationError?.(clientError);
|