Skip to content

Commit

Permalink
fix: 修复 FlowLayer source 为空时的报错问题
Browse files Browse the repository at this point in the history
  • Loading branch information
heiyexing committed Sep 22, 2023
1 parent 81759d0 commit aabcbe0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface FlowLayerWrapperProps extends FlowLayerProps, ImplementLayerPro

const FlowLayerWrapper: React.FC<FlowLayerWrapperProps> = (props) => {
const { source, ...other } = props;
if (isEmpty(source.data)) {
if (isEmpty(source?.data)) {
return null;
}
return <FlowLayer {...other} source={source} />;
Expand Down

0 comments on commit aabcbe0

Please sign in to comment.