From 88e828287a1b2fef519f8083711b5ceba4ea1ba4 Mon Sep 17 00:00:00 2001 From: Emil Sedgh Date: Sun, 3 Nov 2019 22:12:55 -0800 Subject: [PATCH] Bad habits. Fix syntax really. --- src/commands/view/ComponentDrag.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/view/ComponentDrag.js b/src/commands/view/ComponentDrag.js index 5c94f4cbb..eb62e49b0 100644 --- a/src/commands/view/ComponentDrag.js +++ b/src/commands/view/ComponentDrag.js @@ -120,7 +120,9 @@ export default { }, updateGuides(guides) { - const { editor } = this(guides || this.guides).forEach(item => { + const { editor } = this; + + (guides || this.guides).forEach(item => { const { origin } = item; const { top, height, left, width } = editor.Canvas.getElementPos(origin);