Skip to content

Commit ded7c4a

Browse files
committed
check empty
1 parent db03d25 commit ded7c4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/v3/utils/flattenAttributes.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function flattenAttributes(
2222
return result;
2323
}
2424

25-
if (Array.isArray(obj)) {
25+
if (Array.isArray(obj) && obj.length === 0) {
2626
result[prefix || ""] = EMPTY_ARRAY_SENTINEL;
2727
return result;
2828
}

0 commit comments

Comments
 (0)