From 35deebbfd8925290b7ea56ffaf6a6e99a891cadb Mon Sep 17 00:00:00 2001 From: Marta Bondyra Date: Thu, 30 Apr 2020 11:39:45 +0200 Subject: [PATCH] feat: correction --- .../plugins/lens/public/datatable_visualization/expression.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/lens/public/datatable_visualization/expression.tsx b/x-pack/plugins/lens/public/datatable_visualization/expression.tsx index 230c1f93fdc6a..f2efcbfecf0b1 100644 --- a/x-pack/plugins/lens/public/datatable_visualization/expression.tsx +++ b/x-pack/plugins/lens/public/datatable_visualization/expression.tsx @@ -196,7 +196,7 @@ export function DatatableComponent(props: DatatableRenderProps) { name: (col && col.name) || '', render: (value: unknown) => { const formattedValue = formatters[field]?.convert(value); - const fieldName = col?.meta?.aggConfigParams.field; + const fieldName = col?.meta?.aggConfigParams?.field; if (filterable) { return (