From b0c95d36aea4999a0d31284fd1872760346e5ce2 Mon Sep 17 00:00:00 2001 From: drafish Date: Fri, 5 Jul 2019 09:44:12 +0800 Subject: [PATCH] fix issue #930 (#931) --- components/form/FormItem.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/form/FormItem.jsx b/components/form/FormItem.jsx index be85cb042..feb7d6b88 100644 --- a/components/form/FormItem.jsx +++ b/components/form/FormItem.jsx @@ -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 }.`, );