Skip to content

Commit

Permalink
fix(@uform/next): formitem compatibility (#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnIsOnTheRoad authored and janryWang committed Nov 27, 2019
1 parent 15b6b43 commit 3bfe515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/compat/FormItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const computeStatus = (props: ICompatItemProps) => {
if (props.invalid) {
return 'error'
}
if (props.warnings.length) {
if (props.warnings && props.warnings.length) {
return 'warning'
}
}
Expand Down

0 comments on commit 3bfe515

Please sign in to comment.