Skip to content

Commit

Permalink
refactor: Don't render empty message when loading
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenOutman committed Mar 3, 2021
1 parent 1d35849 commit 4739422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ECharts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function ECharts({
className={`rs-echarts ${className || ''}`}
style={{ position: 'relative', height, ...style }}
>
{dataEmpty && renderEmptyMessage()}
{!loading && dataEmpty && renderEmptyMessage()}
<ReactEchartsCore
echarts={echarts}
option={echartsOption}
Expand Down

0 comments on commit 4739422

Please sign in to comment.