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 3a220e59b45..bd93a56331a 100644 --- a/addons/web_editor/static/src/js/editor/snippets.editor.js +++ b/addons/web_editor/static/src/js/editor/snippets.editor.js @@ -392,8 +392,6 @@ var SnippetEditor = Widget.extend({ editor = $parent.data('snippet-editor'); } if (isEmptyAndRemovable($parent, editor)) { - // TODO maybe this should be part of the actual Promise being - // returned by the function ? await new Promise((resolve)=> { setTimeout(() => editor.removeSnippet().then(resolve)); });