Skip to content

Commit e597ae8

Browse files
committed
fix: add parenthesis to array of links
1 parent f9130a0 commit e597ae8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderer/cf-render-prop-array.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const renderPropArray = (field: Field): string => {
1010
}
1111

1212
if (field.items.type === 'Link') {
13-
return renderPropLink(field.items) + '[]';
13+
return `(${renderPropLink(field.items)})[]`;
1414
}
1515

1616
if (field.items.type === 'Symbol') {

0 commit comments

Comments
 (0)