mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
fix: set correct lables for project charts (#6099)
This commit is contained in:
parent
7ec0fa55ab
commit
de0bebd7ad
@ -40,8 +40,10 @@ export const FlagsProjectChart: VFC<IFlagsProjectChartProps> = ({
|
||||
},
|
||||
);
|
||||
|
||||
const objectKeys = Object.keys(groupedFlagTrends);
|
||||
|
||||
return {
|
||||
labels: projectFlagTrends.map((item) => item.date),
|
||||
labels: groupedFlagTrends[objectKeys[0]].map((item) => item.date),
|
||||
datasets,
|
||||
};
|
||||
}, [theme, projectFlagTrends]);
|
||||
|
@ -41,8 +41,10 @@ export const ProjectHealthChart: VFC<IFlagsProjectChartProps> = ({
|
||||
},
|
||||
);
|
||||
|
||||
const objectKeys = Object.keys(groupedFlagTrends);
|
||||
|
||||
return {
|
||||
labels: projectFlagTrends.map((item) => item.date),
|
||||
labels: groupedFlagTrends[objectKeys[0]].map((item) => item.date),
|
||||
datasets,
|
||||
};
|
||||
}, [theme, projectFlagTrends]);
|
||||
|
Loading…
Reference in New Issue
Block a user