We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae2f272 commit bc86cc7Copy full SHA for bc86cc7
CHANGELOG.md
@@ -1,5 +1,9 @@
1
# Changelog
2
3
+## 3.4.1
4
+
5
+* Fix empty array in form would trigger a file upload
6
7
## 3.4.0
8
9
* Add enum input guesser
src/hydra/dataProvider.ts
@@ -257,7 +257,7 @@ function dataProvider(
257
const values = Object.values(hydraData);
258
const containFile = (element: unknown): boolean =>
259
Array.isArray(element)
260
- ? element.every((value) => containFile(value))
+ ? element.length > 0 && element.every((value) => containFile(value))
261
: isPlainObject(element) &&
262
Object.values(element as Record<string, unknown>).some(
263
(value) => value instanceof File,
0 commit comments