From 678fd95aeb554f7718eb93660d4cd898bffb3741 Mon Sep 17 00:00:00 2001 From: dej611 Date: Fri, 4 Jun 2021 17:51:09 +0200 Subject: [PATCH] :fire: Remove warning message for last value --- .../datatable_visualization/visualization.tsx | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/x-pack/plugins/lens/public/datatable_visualization/visualization.tsx b/x-pack/plugins/lens/public/datatable_visualization/visualization.tsx index 48f9aec76e009..c2b6708da57f8 100644 --- a/x-pack/plugins/lens/public/datatable_visualization/visualization.tsx +++ b/x-pack/plugins/lens/public/datatable_visualization/visualization.tsx @@ -445,37 +445,6 @@ export const getDatatableVisualization = ({ return state; } }, - getWarningMessages(state, frame) { - if (state?.columns.length === 0 || !frame.activeData) { - return; - } - - const metricColumnsWithArrayValues = []; - - for (const { columnId, summaryRow } of state.columns) { - const rows = frame.activeData[state.layerId] && frame.activeData[state.layerId].rows; - if (!rows || summaryRow == null || summaryRow === 'none') { - continue; - } - const columnToLabel = frame.datasourceLayers[state.layerId].getOperationForColumnId(columnId) - ?.label; - - const hasArrayValues = rows.some((row) => Array.isArray(row[columnId])); - if (hasArrayValues) { - metricColumnsWithArrayValues.push(columnToLabel || columnId); - } - } - return metricColumnsWithArrayValues.map((label) => ( - {label}, - }} - /> - )); - }, }); function getDataSourceAndSortedColumns(