Skip to content

Commit

Permalink
fix issue #930 (#931)
Browse files Browse the repository at this point in the history
  • Loading branch information
drafish authored and tangjinzhou committed Jul 5, 2019
1 parent 1af8c07 commit b0c95d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/form/FormItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ export default {
const directive = find(vnode.data.directives, ['name', 'decorator']);
warning(
!directive || (directive && Array.isArray(directive.value)),
`Invalid directive: type check failed for directive "decorator". Expected Array, got ${typeof directive.value}. At ${
`Invalid directive: type check failed for directive "decorator". Expected Array, got ${typeof (directive ? directive.value : directive)}. At ${
vnode.tag
}.`,
);
Expand Down

0 comments on commit b0c95d3

Please sign in to comment.