1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-09 00:18:00 +01:00

refactor: remove chart point filter (#743)

This commit is contained in:
olav 2022-02-23 17:23:21 +01:00 committed by GitHub
parent 3d93ed44d4
commit 47f6bc5829

View File

@ -42,10 +42,8 @@ const createChartPoints = (
locationSettings: ILocationSettings,
y: (m: IFeatureMetricsRaw) => number
): IPoint[] => {
const points = metrics.map(metric => ({
return metrics.map(metric => ({
x: metric.timestamp,
y: y(metric),
}));
return points.filter(point => point.y > 0);
};