1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-14 00:19:16 +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, locationSettings: ILocationSettings,
y: (m: IFeatureMetricsRaw) => number y: (m: IFeatureMetricsRaw) => number
): IPoint[] => { ): IPoint[] => {
const points = metrics.map(metric => ({ return metrics.map(metric => ({
x: metric.timestamp, x: metric.timestamp,
y: y(metric), y: y(metric),
})); }));
return points.filter(point => point.y > 0);
}; };