diff --git a/lib/mixins/canvas-drawer.js b/lib/mixins/canvas-drawer.js index ac9a520c..f5c3274a 100644 --- a/lib/mixins/canvas-drawer.js +++ b/lib/mixins/canvas-drawer.js @@ -482,7 +482,11 @@ export default class CanvasDrawer extends Mixin { const context = this.tokensLayer.context const {width: canvasWidth} = this.tokensLayer.getSize() - if (!this.tokenLinesForScreenRows) { return } + if (typeof this.tokenLinesForScreenRows != 'function') { + console.error(`tokenLinesForScreenRows should be a function but it was ${typeof this.tokenLinesForScreenRows}`, this.tokenLinesForScreenRows) + + return + } const screenRowsTokens = this.tokenLinesForScreenRows(firstRow, lastRow)