Only let nodeGraph frames process through nodeGraph

This commit is contained in:
Kristina Durivage 2024-05-01 14:46:46 -05:00
parent ee4422d1e2
commit b8be50e219

View File

@ -11,6 +11,8 @@ import { getGraphFrame } from './utils';
*/
export function useCategorizeFrames(series: DataFrame[]) {
return useMemo(() => {
return getGraphFrame(series);
return getGraphFrame(
series.filter((singleSeries) => singleSeries.meta?.preferredVisualisationType === 'nodeGraph')
);
}, [series]);
}