This repository was archived by the owner on Aug 29, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ export interface ICellCoordinates {
8484export type ColumnId = string ;
8585export type Columns = IColumn [ ] ;
8686export type Data = Datum [ ] ;
87- export type Datum = IDatumObject | any ;
87+ export type Datum = IDatumObject ;
8888export type Indices = number [ ] ;
8989export type RowId = string | number ;
9090export type SelectedCells = ICellCoordinates [ ] ;
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const getter = (
2222 sort_by : SortBy = [ ]
2323) : IDerivedData => {
2424 const map = new Map < Datum , number > ( ) ;
25- R . addIndex ( R . forEach ) ( ( datum , index ) => {
25+ R . addIndex < Datum > ( R . forEach ) ( ( datum , index ) => {
2626 map . set ( datum , index ) ;
2727 } , data ) ;
2828
Original file line number Diff line number Diff line change @@ -81,14 +81,13 @@ const getter = (
8181 }
8282
8383 const active = isActiveCell ( activeCell , i , j ) ;
84- const column_id = columns [ jWithOffset ] . id ;
8584
8685 const priority = active ? ACTIVE_PRIORITY : SELECTED_PRIORITY ;
8786 const defaultEdge = active ? Environment . activeEdge : Environment . defaultEdge ;
8887
8988 const style : BorderStyle = {
9089 ...getDataCellEdges (
91- data [ iWithOffset ] [ column_id ] ,
90+ data [ iWithOffset ] ,
9291 iWithOffset ,
9392 columns [ j ] ,
9493 active ,
@@ -102,15 +101,15 @@ const getter = (
102101 borderTop : [ defaultEdge , priority ] ,
103102
104103 ...getDataCellEdges (
105- data [ iWithOffset ] [ column_id ] ,
104+ data [ iWithOffset ] ,
106105 iWithOffset ,
107106 columns [ j ] ,
108107 active ,
109108 true ,
110109 priority
111110 ) ( selectedStyles ) ,
112111 ...getDataCellEdges (
113- data [ iWithOffset ] [ column_id ] ,
112+ data [ iWithOffset ] ,
114113 iWithOffset ,
115114 columns [ j ] ,
116115 active ,
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import React from 'react';
44import { memoizeOneFactory } from 'core/memoizer' ;
55
66import {
7- Datum ,
87 Selection
98} from 'dash-table/components/Table/props' ;
109
@@ -29,7 +28,7 @@ const getter = (
2928 headerRows : number ,
3029 rowSelectable : Selection ,
3130 rowDeletable : boolean
32- ) : JSX . Element [ ] [ ] => R . addIndex < Datum , JSX . Element [ ] > ( R . map ) (
31+ ) : JSX . Element [ ] [ ] => R . addIndex < number , JSX . Element [ ] > ( R . map ) (
3332 ( ) => [
3433 ...( rowDeletable ? [ rowDeleteHeader ( ) ] : [ ] ) ,
3534 ...( rowSelectable ? [ rowSelectCell ( ) ] : [ ] )
You can’t perform that action at this time.
0 commit comments