diff --git a/services/web/public/src/ide/editor/directives/aceEditor.js b/services/web/public/src/ide/editor/directives/aceEditor.js index 99f30ae5ff..5434e5ceb6 100644 --- a/services/web/public/src/ide/editor/directives/aceEditor.js +++ b/services/web/public/src/ide/editor/directives/aceEditor.js @@ -762,11 +762,13 @@ define([ return doc.off('change', onChange) } - editor.renderer.on('changeCharacterSize', () => - scope.$apply( - () => (scope.rendererData.lineHeight = editor.renderer.lineHeight) - ) - ) + if (scope.rendererData != null) { + editor.renderer.on('changeCharacterSize', () => { + scope.$apply( + () => (scope.rendererData.lineHeight = editor.renderer.lineHeight) + ) + }) + } scope.$watch('rendererData', function(rendererData) { if (rendererData != null) {