From cfbe4bbe429de18b06ca78628cfe7c6caf98ea4c Mon Sep 17 00:00:00 2001 From: David Monjoie Date: Tue, 6 Aug 2019 14:08:59 +0000 Subject: [PATCH] [FIX] web_editor: fix snippets reloading traceback --- .../web_editor/static/src/js/wysiwyg_snippets/snippets.editor.js | 1 + 1 file changed, 1 insertion(+) 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.