Skip to content

Commit

Permalink
Guard against undefined markers type (shipshapecode#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbieTheWagner authored Dec 17, 2020
1 parent bc14b59 commit 4628e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/tether.js
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ Tether.modules.push({
val += 'px';
}

if (this.markers[type].dot.style[side] !== val) {
if (this.markers[type] && this.markers[type].dot?.style[side] !== val) {
this.markers[type].dot.style[side] = val;
}
}
Expand Down

0 comments on commit 4628e54

Please sign in to comment.