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:
parent
3d93ed44d4
commit
47f6bc5829
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user