@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.js
CHANGED
|
@@ -10246,7 +10246,7 @@ function useDrop(options) {
|
|
|
10246
10246
|
const clientError = {
|
|
10247
10247
|
error: isValidation ? "Validation Failed" : "Processing Failed",
|
|
10248
10248
|
details: isValidation ? message : `Failed to process files: ${message}`,
|
|
10249
|
-
errors:
|
|
10249
|
+
errors: [],
|
|
10250
10250
|
isClientError: true
|
|
10251
10251
|
};
|
|
10252
10252
|
setState({
|
|
@@ -10256,8 +10256,7 @@ function useDrop(options) {
|
|
|
10256
10256
|
needsBuild: false,
|
|
10257
10257
|
status: {
|
|
10258
10258
|
title: clientError.error,
|
|
10259
|
-
details: clientError.details
|
|
10260
|
-
...clientError.errors.length > 0 && { errors: clientError.errors }
|
|
10259
|
+
details: clientError.details
|
|
10261
10260
|
}
|
|
10262
10261
|
});
|
|
10263
10262
|
onValidationError?.(clientError);
|