summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
diff options
context:
space:
mode:
authorDavid Monjoie <dmo@odoo.com>2019-08-06 14:08:59 +0000
committerDavid Monjoie <dmo@odoo.com>2019-08-07 08:49:46 +0000
commitcfbe4bbe429de18b06ca78628cfe7c6caf98ea4c (patch)
tree447c7dfa75d973887fd600d208c5e79b87c5dede /addons/web_editor/static/src
parent8e4b8be4e6465204038798db137451c95a8050b6 (diff)
[FIX] web_editor: fix snippets reloading traceback
Diffstat (limited to 'addons/web_editor/static/src')
-rw-r--r--addons/web_editor/static/src/js/wysiwyg_snippets/snippets.editor.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/wysiwyg_snippets/snippets.editor.js b/addons/web_editor/static/src/js/wysiwyg_snippets/snippets.editor.js
index d13ddf63038..c325458b3f2 100644
--- a/addons/web_editor/static/src/js/wysiwyg_snippets/snippets.editor.js
+++ b/addons/web_editor/static/src/js/wysiwyg_snippets/snippets.editor.js
@@ -746,6 +746,7 @@ var SnippetsMenu = Widget.extend({
},
});
this.cacheSnippetTemplate[this.options.snippets] = this._defLoadSnippets;
+ return this.cacheSnippetTemplate[this.options.snippets];
},
/**
* Sets the instance variables $editor, $body and selectorEditableArea.