From 026564731f8400b0b3fc3de547d6b193b9b8ce97 Mon Sep 17 00:00:00 2001 From: reng Date: Thu, 9 Apr 2026 20:51:51 +0800 Subject: [PATCH] fix group --- v2/app/src/components/graph.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/v2/app/src/components/graph.jsx b/v2/app/src/components/graph.jsx index 2a095e9..309af69 100644 --- a/v2/app/src/components/graph.jsx +++ b/v2/app/src/components/graph.jsx @@ -175,8 +175,11 @@ export default function Graph({results}){ } let group = results?.[index]?.payload.group?.[0]; - const keyword = keywords.find(kw=>kw.id===group?.id); + const keyword = keywords.find(kw=>kw.id===parseInt(group?.id)); const group_index = keyword ? keywords.indexOf(keyword) : -1; + if(group_index === -1){ + console.log("No keyword found for point:", group); + } const point_index=results?.indexOf(keyword); const keyword_point = point_index != -1 ? points[point_index] : [0,0,0];