Fix legend translation keys by removing spaces from node types
This commit is contained in:
parent
5e0ef7166e
commit
68883c0e7a
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ const Legend: React.FC<LegendProps> = ({ className }) => {
|
|||
style={{ backgroundColor: color }}
|
||||
/>
|
||||
<span className="text-xs truncate" title={type}>
|
||||
{t(`graphPanel.nodeTypes.${type.toLowerCase()}`, type)}
|
||||
{t(`graphPanel.nodeTypes.${type.toLowerCase().replace(/\s+/g, '')}`, type)}
|
||||
</span>
|
||||
</div>
|
||||
))}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue