diff --git a/addons/web_editor/static/src/js/editor/snippets.editor.js b/addons/web_editor/static/src/js/editor/snippets.editor.js index b507b5d5f85..3a91fe2be1c 100644 --- a/addons/web_editor/static/src/js/editor/snippets.editor.js +++ b/addons/web_editor/static/src/js/editor/snippets.editor.js @@ -2056,10 +2056,11 @@ var SnippetsMenu = Widget.extend({ * @private */ _onBlocksTabClick: function (ev) { - this._activateSnippet(false); - this._updateLeftPanelContent({ - content: [], - tab: this.tabs.BLOCKS, + this._activateSnippet(false).then(() => { + this._updateLeftPanelContent({ + content: [], + tab: this.tabs.BLOCKS, + }); }); }, /**