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.