From a692cf42f4ff24a8ca7676b1d68d4a07c3f247aa Mon Sep 17 00:00:00 2001 From: Goaman Date: Thu, 26 Nov 2020 13:26:59 +0000 Subject: [PATCH] [IMP] web_editor: remove useless comment X-original-commit: c435b7febe11aec99827fc81eb6ea62a74d82edd --- addons/web_editor/static/src/js/editor/snippets.editor.js | 2 -- 1 file changed, 2 deletions(-) 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)); });