fix(#9240) Data Insight Latest Value for Percentage of Entity Description is Not Correct (#9285)

This commit is contained in:
Sachin Chaurasiya 2022-12-14 13:05:02 +05:30 committed by GitHub
parent 11b5de38b3
commit 49104b7826
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -218,7 +218,7 @@ const getLatestPercentage = (
if (timestamp) {
return {
...raw,
timestamp: getFormattedDateFromMilliSeconds(raw.timestamp ?? 0),
timestamp,
};
}
@ -336,8 +336,6 @@ export const getGraphDataByEntityType = (
const graphData = prepareGraphData(timestamps, filteredData);
const latestData = last(graphData);
getLatestPercentage(rawData, dataInsightChartType);
return {
data: graphData,
entities,