Skip to content

Commit

Permalink
fix: Add undefined check for target.startPosition
Browse files Browse the repository at this point in the history
  • Loading branch information
blms committed Aug 18, 2021
1 parent e91984b commit 55c7db7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/LinkInspectorPopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class LinkInspectorPopup extends Component {
<Paper
id={this.getInnerID()}
zDepth={4}
style={{ position: 'absolute', top: `${target.startPosition.y}px`, left: `${target.startPosition.x}px`, zIndex: (999 + this.props.popupIndex).toString()}}
style={{ position: 'absolute', top: `${target.startPosition ? target.startPosition.y : 0}px`, left: `${target.startPosition ? target.startPosition.x : 0}px`, zIndex: (999 + this.props.popupIndex).toString()}}
>
<div style={{ display: 'flex', flexShrink: '0', backgroundColor: titleBarColor }}>
<Subheader style={{ flexGrow: '1', cursor: '-webkit-grab' }} className='links-popup-drag-handle' onMouseDown={this.props.onDragHandleMouseDown} >
Expand Down

0 comments on commit 55c7db7

Please sign in to comment.