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 dae34100096..1e97e19f27d 100644 --- a/addons/web_editor/static/src/js/editor/snippets.editor.js +++ b/addons/web_editor/static/src/js/editor/snippets.editor.js @@ -4050,24 +4050,12 @@ var SnippetsMenu = Widget.extend({ */ _onUndo: async function () { this.options.wysiwyg.undo(); - // Resizing all the grids. - // TODO maybe to remove when history will be fixed. - const $gridModeRows = this.getEditableArea().find('.row.o_grid_mode'); - for (const rowEl of $gridModeRows) { - gridUtils._resizeGrid(rowEl); - } }, /** * Redo. */ _onRedo: async function () { this.options.wysiwyg.redo(); - // Resizing all the grids. - // TODO maybe to remove when history will be fixed. - const $gridModeRows = this.getEditableArea().find('.row.o_grid_mode'); - for (const rowEl of $gridModeRows) { - gridUtils._resizeGrid(rowEl); - } }, /** * @private