diff --git a/src/plugins/data/common/exports/table_filter.ts b/src/plugins/data/common/exports/table_filter.ts index 396666b9d9a76..da7b0b62e06cb 100644 --- a/src/plugins/data/common/exports/table_filter.ts +++ b/src/plugins/data/common/exports/table_filter.ts @@ -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; }