diff --git a/lightrag_webui/src/components/graph/Legend.tsx b/lightrag_webui/src/components/graph/Legend.tsx index d26d11a3..e4a45857 100644 --- a/lightrag_webui/src/components/graph/Legend.tsx +++ b/lightrag_webui/src/components/graph/Legend.tsx @@ -28,7 +28,7 @@ const Legend: React.FC = ({ className }) => { style={{ backgroundColor: color }} /> - {t(`graphPanel.nodeTypes.${type.toLowerCase()}`, type)} + {t(`graphPanel.nodeTypes.${type.toLowerCase().replace(/\s+/g, '')}`, type)} ))}