Skip to content

Commit c12ed0b

Browse files
committed
Should concat array instead replace
1 parent 52a4455 commit c12ed0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const resolvePath = (o, path, v=null, d) => {
2929
cur.push.apply(cur, Array(extend))
3030
}
3131
if (next === '[]' && typeof v !== 'string') {
32-
cur[i] = v
32+
cur[i] = [...cur[i] ?? [], ...v]
3333
return o
3434
} else if (next) {
3535
if (next.startsWith('[]')) {

0 commit comments

Comments
 (0)