From 4bc79bd304072b458f63482d3a4f5049c6491467 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Wed, 6 Nov 2019 23:09:59 +0100 Subject: [PATCH] Fix editor reference in updateGuides --- src/commands/view/ComponentDrag.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands/view/ComponentDrag.js b/src/commands/view/ComponentDrag.js index 2dee0a6e4..eb62e49b0 100644 --- a/src/commands/view/ComponentDrag.js +++ b/src/commands/view/ComponentDrag.js @@ -120,6 +120,8 @@ export default { }, updateGuides(guides) { + const { editor } = this; + (guides || this.guides).forEach(item => { const { origin } = item; const { top, height, left, width } = editor.Canvas.getElementPos(origin);