Skip to content

Commit

Permalink
fix edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed Mar 31, 2022
1 parent f2e636f commit 9468a24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/editor/LabelWrapper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const LabelWrapper = (props) => {
const { data = {} } = element;
const { uid, label_type } = data;
const isTooltipText =
data.tooltip_content &&
serializeNodesToText(data.tooltip_content).trim().length > 0;

return isTooltipText ? (
Expand Down

0 comments on commit 9468a24

Please sign in to comment.