From da1212f37e3394f099dd2c8afbf7cc373bb5738b Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Fri, 2 Nov 2018 10:41:03 +0100 Subject: [PATCH] editor: fix context addtab to root --- src/client/app/editor/context-menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/app/editor/context-menu.js b/src/client/app/editor/context-menu.js index ffdb8644..4966764d 100644 --- a/src/client/app/editor/context-menu.js +++ b/src/client/app/editor/context-menu.js @@ -175,7 +175,7 @@ var handleClick = function(event) { data[0].tabs.push({}) var indexes = {addedIndexes: [data[0].tabs.length -1]} - updateWidget(widget, indexes) + updateWidget(editor.selectedWidgets[0], indexes) editor.pushHistory(indexes) } })