From b2734eda66e2854909dd4cad3be8a07b19cab091 Mon Sep 17 00:00:00 2001 From: kayw Date: Fri, 14 Oct 2016 20:21:46 +0800 Subject: [PATCH] fix: direct use "dist/antd" cause server rendering error (#3436) --- components/style/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/index.tsx b/components/style/index.tsx index 9dbe3759a0..c8281622ef 100644 --- a/components/style/index.tsx +++ b/components/style/index.tsx @@ -6,7 +6,7 @@ function isFlexSupported(style) { 'MozFlex' in style; } -if (typeof window !== undefined && window.document && window.document.documentElement) { +if (typeof window !== 'undefined' && window.document && window.document.documentElement) { const { documentElement } = window.document; const NO_FLEX = 'no-flex';