Fix linting

This commit is contained in:
yangdx
2025-04-06 23:42:23 +08:00
parent 688be94085
commit 44e7a18a77

View File

@@ -43,8 +43,8 @@ const Legend: React.FC<LegendProps> = ({ className }) => {
style={{ backgroundColor: color }}
/>
<span className="text-xs truncate" title={type}>
{PREDEFINED_TYPES.includes(type.toLowerCase())
? t(`graphPanel.nodeTypes.${type.toLowerCase()}`)
{PREDEFINED_TYPES.includes(type.toLowerCase())
? t(`graphPanel.nodeTypes.${type.toLowerCase()}`)
: type}
</span>
</div>