Skip to content

Commit

Permalink
🐛 fix bug for coloumns without meta
Browse files Browse the repository at this point in the history
  • Loading branch information
dej611 committed Jan 4, 2022
1 parent 5ba59ff commit 49f9598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/data/common/exports/table_filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
import { DatatableColumn } from 'src/plugins/expressions';

export function getVisibleColumns(columns: DatatableColumn[]) {
const columnsHaveMetaInfo = columns.some(({ meta }) => meta.dimensionName);
const columnsHaveMetaInfo = columns.some(({ meta }) => meta?.dimensionName);
return columnsHaveMetaInfo ? columns.filter(({ meta }) => meta?.dimensionName) : columns;
}

0 comments on commit 49f9598

Please sign in to comment.