We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 818bb06 + 855a4c9 commit 6c6bbffCopy full SHA for 6c6bbff
frontend/src/components/Graph/LegendsChip.tsx
@@ -5,7 +5,7 @@ import Legend from '../UI/Legend';
5
export const LegendsChip: React.FunctionComponent<LegendChipProps> = ({ scheme, title, nodes }) => {
6
const chunkcount = useMemo(
7
() => [...new Set(nodes?.filter((n) => n?.labels?.includes(title)).map((i) => i.id))].length,
8
- []
+ [nodes]
9
);
10
11
return <Legend title={title} chunkCount={chunkcount} bgColor={scheme[title]}></Legend>;
0 commit comments