File tree Expand file tree Collapse file tree
x-pack/plugins/lens/public/datatable_visualization Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -264,7 +264,9 @@ export function DatatableComponent(props: DatatableRenderProps) {
264264 return < EmptyPlaceholder icon = { LensIconChartDatatable } /> ;
265265 }
266266
267- const tableColumns : Array < EuiBasicTableColumn < unknown > > = props . args . columns . columnIds
267+ const tableColumns : Array <
268+ EuiBasicTableColumn < { rowIndex : number ; [ key : string ] : unknown } >
269+ > = props . args . columns . columnIds
268270 . map ( ( field ) => {
269271 const col = firstTable . columns . find ( ( c ) => c . id === field ) ;
270272 const filterable = bucketColumns . includes ( field ) ;
@@ -346,7 +348,9 @@ export function DatatableComponent(props: DatatableRenderProps) {
346348 const hasAtLeastOneRowClickAction = props . rowHasRowClickTriggerActions . find ( ( x ) => x ) ;
347349 if ( hasAtLeastOneRowClickAction ) {
348350 const actions : EuiTableActionsColumnType < { rowIndex : number ; [ key : string ] : unknown } > = {
349- name : 'Actions' ,
351+ name : i18n . translate ( 'xpack.lens.datatable.actionsColumnName' , {
352+ defaultMessage : 'Actions' ,
353+ } ) ,
350354 actions : [
351355 {
352356 name : i18n . translate ( 'xpack.lens.tableRowMore' , {
@@ -374,7 +378,7 @@ export function DatatableComponent(props: DatatableRenderProps) {
374378 } ,
375379 ] ,
376380 } ;
377- tableColumns . push ( actions as EuiTableActionsColumnType < unknown > ) ;
381+ tableColumns . push ( actions ) ;
378382 }
379383 }
380384
You can’t perform that action at this time.
0 commit comments