From 35aaf6b9e924218d8e9a3777bd7911747d6c16da Mon Sep 17 00:00:00 2001 From: ycjcl868 <45808948@qq.com> Date: Tue, 27 Aug 2019 14:23:14 +0800 Subject: [PATCH] fix: status types --- components/result/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/result/index.tsx b/components/result/index.tsx index 2ef05910ce..a065ed5345 100644 --- a/components/result/index.tsx +++ b/components/result/index.tsx @@ -46,7 +46,7 @@ const ExceptionStatus = Object.keys(ExceptionMap); const renderIcon = (prefixCls: string, { status, icon }: ResultProps) => { const className = classnames(`${prefixCls}-icon`); - if (ExceptionStatus.includes(status)) { + if (ExceptionStatus.includes(status as ResultStatusType)) { const SVGComponent = ExceptionMap[status as ExceptionStatusType]; return (