Merge pull request #5202 from opf/fix/seleted-columns

Fix selected columns
pull/5205/head
Oliver Günther 8 years ago committed by GitHub
commit a8f3ac7fbd
  1. 2
      frontend/app/components/modals/columns-modal/columns-modal.controller.ts

@ -70,7 +70,7 @@ function ColumnsModalController(this:any,
var availableColumnNames = getColumnNames(availableColumns); var availableColumnNames = getColumnNames(availableColumns);
selectedColumns.forEach((column:api.ex.Column) => { selectedColumns.forEach((column:api.ex.Column) => {
if (_.find(availableColumnNames, column.name)) { if (_.find(availableColumnNames, (available:string) => (available === column.name))) {
vm.selectedColumns.push(column); vm.selectedColumns.push(column);
vm.selectedColumnMap[column.name] = true; vm.selectedColumnMap[column.name] = true;
vm.oldSelectedColumns.push(column); vm.oldSelectedColumns.push(column);

Loading…
Cancel
Save