Skip to content

Commit b96a516

Browse files
authored
fix(app-headless-cms): allow sending empty arrays from form (#3765)
1 parent edacc4b commit b96a516

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app-headless-cms-common/src/prepareFormData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const prepareFormData = (
6565

6666
if (field.multipleValues) {
6767
const values = Array.isArray(inputValue) ? inputValue : undefined;
68-
if (!values?.length) {
68+
if (!values) {
6969
return output;
7070
}
7171
/**

0 commit comments

Comments
 (0)