Skip to content

Commit

Permalink
EmbedChart better empty content triggering
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiggr committed Jul 23, 2021
1 parent f630163 commit 634a0f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/EmbedChartBlock/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const EmbedChartView = ({

const isDefaultText =
data.text?.blocks?.length === 1 &&
data.text?.blocks?.[0]?.children?.length === 1 &&
data.text?.blocks?.[0]?.children?.[0].text === '';

const hasText =
Expand Down

0 comments on commit 634a0f6

Please sign in to comment.