Skip to content

Commit 5a27f09

Browse files
author
shaoyu
committed
fix typing issue
1 parent 5a066a3 commit 5a27f09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/demo/src/visitors/FullNameField.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const FullNameField = (props: Props) => {
2424
flexWrap: 'nowrap',
2525
alignItems: 'center',
2626
},
27-
props.sx,
27+
...(Array.isArray(props.sx) ? props.sx : [props.sx]),
2828
]}
2929
>
3030
<AvatarField

0 commit comments

Comments
 (0)