summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/ace.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web_editor/static/src/js/ace.js')
-rw-r--r--addons/web_editor/static/src/js/ace.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/ace.js b/addons/web_editor/static/src/js/ace.js
index 5fbe7589265..56500383851 100644
--- a/addons/web_editor/static/src/js/ace.js
+++ b/addons/web_editor/static/src/js/ace.js
@@ -149,7 +149,7 @@ var ViewEditor = Widget.extend({
view.children = [];
});
_.each(index, function (view) {
- var parentId = view.inherit_id;
+ var parentId = view.inherit_id[0];
if (parentId && index[parentId]) {
index[parentId].children.push(view);
} else {