From aabcbe0024b409ac0495005db31fbd0b7740dd17 Mon Sep 17 00:00:00 2001 From: yanxiong Date: Fri, 22 Sep 2023 18:00:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20FlowLayer=20source?= =?UTF-8?q?=20=E4=B8=BA=E7=A9=BA=E6=97=B6=E7=9A=84=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/li-analysis-assets/src/layers/FlowLayer/Component.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/li-analysis-assets/src/layers/FlowLayer/Component.tsx b/packages/li-analysis-assets/src/layers/FlowLayer/Component.tsx index 76f032df..b9ef5435 100644 --- a/packages/li-analysis-assets/src/layers/FlowLayer/Component.tsx +++ b/packages/li-analysis-assets/src/layers/FlowLayer/Component.tsx @@ -8,7 +8,7 @@ export interface FlowLayerWrapperProps extends FlowLayerProps, ImplementLayerPro const FlowLayerWrapper: React.FC = (props) => { const { source, ...other } = props; - if (isEmpty(source.data)) { + if (isEmpty(source?.data)) { return null; } return ;