Skip to content

Commit

Permalink
chore: restore
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen committed Nov 29, 2024
1 parent e2273c7 commit 5b46fca
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/Item/VisualizationItem/Item.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,7 @@ class Item extends Component {
this.props.item.id
)?.getBoundingClientRect()

return rect
? `${rect.width - this.itemContentPadding * 2}px`
: undefined
return rect && `${rect.width - this.itemContentPadding * 2}px`
}

onFatalError = () => {
Expand Down

0 comments on commit 5b46fca

Please sign in to comment.