[FIX] web_widget_one2many_product_picker: Use a compact list of old widgets to destroy

pull/1802/head
Alexandre D. Díaz 2021-02-15 20:06:21 +01:00
parent dccab1502a
commit 6fd1f4f7e2
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ odoo.define("web_widget_one2many_product_picker.One2ManyProductPickerRenderer",
*/
_renderView: function () {
var self = this;
var oldWidgets = this.widgets;
var oldWidgets = _.compact(this.widgets);
this.widgets = [];
this.$recordsContainer = $("<DIV/>", {
class: "w-100 row",