diff --git a/web/src/features/moreCast2/components/ColumnDefBuilder.tsx b/web/src/features/moreCast2/components/ColumnDefBuilder.tsx index 5c8a50692..0581c7b2f 100644 --- a/web/src/features/moreCast2/components/ColumnDefBuilder.tsx +++ b/web/src/features/moreCast2/components/ColumnDefBuilder.tsx @@ -153,8 +153,6 @@ export class ColumnDefBuilder implements ColDefGenerator, ForecastColDefGenerato public valueFormatterWith = (params: Pick, precision: number) => this.gridComponentRenderer.predictionItemValueFormatter(params, precision) - public valueGetterWith = (params: Pick, precision: number) => - this.gridComponentRenderer.cellValueGetter(params, precision) public valueGetter = ( params: Pick, field: string, diff --git a/web/src/features/moreCast2/components/GridComponentRenderer.tsx b/web/src/features/moreCast2/components/GridComponentRenderer.tsx index 4c87b7960..58f43ff65 100644 --- a/web/src/features/moreCast2/components/GridComponentRenderer.tsx +++ b/web/src/features/moreCast2/components/GridComponentRenderer.tsx @@ -153,8 +153,4 @@ export class GridComponentRenderer { return isNaN(value) ? params.value : value.toFixed(precision) } - - public cellValueGetter = (params: Pick, precision: number) => { - return isNaN(params?.value) ? 'NaN' : params.value.toFixed(precision) - } } diff --git a/web/src/features/moreCast2/components/colDefBuilder.test.tsx b/web/src/features/moreCast2/components/colDefBuilder.test.tsx index 2442edc4b..ad4cd53a3 100644 --- a/web/src/features/moreCast2/components/colDefBuilder.test.tsx +++ b/web/src/features/moreCast2/components/colDefBuilder.test.tsx @@ -205,7 +205,6 @@ describe('ColDefBuilder', () => { it('should delegate to GridComponentRenderer', () => { expect(colDefBuilder.valueFormatterWith({ value: 1.11 }, 1)).toEqual('1.1') - expect(colDefBuilder.valueGetterWith({ value: 1.11 }, 1)).toEqual('1.1') expect( colDefBuilder.valueGetter( { diff --git a/web/src/features/moreCast2/components/gridComponentRenderer.test.tsx b/web/src/features/moreCast2/components/gridComponentRenderer.test.tsx index 244bdf65f..b8f51b44d 100644 --- a/web/src/features/moreCast2/components/gridComponentRenderer.test.tsx +++ b/web/src/features/moreCast2/components/gridComponentRenderer.test.tsx @@ -182,16 +182,6 @@ describe('GridComponentRenderer', () => { expect(formattedItemValue).toEqual(NOT_REPORTING) }) - it('should return an existent cell value correctly', () => { - const cellValue = gridComponentRenderer.cellValueGetter({ value: 1.11 }, 1) - expect(cellValue).toEqual('1.1') - }) - - it('should return an non-existent cell value correctly', () => { - const cellValue = gridComponentRenderer.cellValueGetter({ value: NaN }, 1) - expect(cellValue).toEqual('NaN') - }) - it('should return an existent prediction item value correctly', () => { const itemValue = gridComponentRenderer.valueGetter( {