Skip to content

Commit

Permalink
Ensure that this.params.splitChannelsOptions && overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpaulmedina committed Jan 24, 2021
1 parent bbf44bf commit 99da392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drawer.multicanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ export default class MultiCanvas extends Drawer {
let offsetY = height * drawIndex || 0;

// Override offsetY if overlay is true
if (this.params.splitChannelsOptions.overlay) {
if (this.params.splitChannelsOptions && this.params.splitChannelsOptions.overlay) {
offsetY = 0;
}

Expand Down

0 comments on commit 99da392

Please sign in to comment.