File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
frontend/src/app/pages/DashBoardPage/utils Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ import { convertToChartConfigDTO } from 'app/utils/ChartDtoHelper';
3737import { getTime } from 'app/utils/time' ;
3838import { FilterSqlOperator , TIME_FORMATTER } from 'globalConstants' ;
3939import i18next from 'i18next' ;
40- import produce from 'immer' ;
4140import moment from 'moment' ;
41+ import { CloneValueDeep } from 'utils/object' ;
4242import { ChartDataRequestFilter } from '../../../types/ChartDataRequest' ;
4343import { STORAGE_IMAGE_KEY_PREFIX } from '../constants' ;
4444import {
@@ -97,9 +97,13 @@ export const getRGBAColor = color => {
9797} ;
9898
9999export const getChartDataRequestBuilder = ( dataChart : DataChart ) => {
100- const migratedChartConfig = produce ( dataChart ?. config , draft => {
101- migrateChartConfig ( draft as ChartDetailConfigDTO ) ;
102- } ) ;
100+ // const migratedChartConfig = (dataChart?.config, draft => {
101+ // migrateChartConfig(draft as ChartDetailConfigDTO);
102+ // });
103+ // TODO
104+ const migratedChartConfig = migrateChartConfig (
105+ CloneValueDeep ( dataChart ?. config ) as ChartDetailConfigDTO ,
106+ ) ;
103107 const { datas, settings } = convertToChartConfigDTO (
104108 migratedChartConfig as ChartDetailConfigDTO ,
105109 ) ;
You can’t perform that action at this time.
0 commit comments