Skip to content

Commit

Permalink
ELEMENTS-1707: fix selection of columns in a Table view when the colu…
Browse files Browse the repository at this point in the history
…mns have changed 3.1.x
  • Loading branch information
Nishant0928 committed Jan 17, 2024
1 parent f07c9bc commit e1818d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/nuxeo-data-table/iron-data-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,8 @@ import '../nuxeo-button-styles.js';
if (settings) {
if (this.columns && settings.columns) {
this.columns.forEach(function(column, idx) {
this.set(`columns.${idx}.hidden`, settings.columns[column.field ? column.field : `col-${idx}`].hidden);
const columnField = settings.columns[column.field ? column.field : `col-${idx}`];
this.set(`columns.${idx}.hidden`, columnField?columnField.hidden:false);
}, this);
}
}
Expand Down

0 comments on commit e1818d8

Please sign in to comment.