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);