Fix linting
This commit is contained in:
parent
faa65d39c3
commit
be1216770e
1 changed files with 3 additions and 3 deletions
|
|
@ -36,7 +36,7 @@ const TYPE_SYNONYMS: Record<string, string> = {
|
||||||
'method': 'method',
|
'method': 'method',
|
||||||
'process': 'method',
|
'process': 'method',
|
||||||
'方法': 'method',
|
'方法': 'method',
|
||||||
'过程': 'method',
|
'过程': 'method',
|
||||||
|
|
||||||
'artifact': 'artifact',
|
'artifact': 'artifact',
|
||||||
'technology': 'technology',
|
'technology': 'technology',
|
||||||
|
|
@ -160,13 +160,13 @@ const getNodeColorByType = (nodeType: string | undefined): string => {
|
||||||
|
|
||||||
// First try to find standard type
|
// First try to find standard type
|
||||||
const standardType = TYPE_SYNONYMS[normalizedType];
|
const standardType = TYPE_SYNONYMS[normalizedType];
|
||||||
|
|
||||||
// Check cache using standard type if available, otherwise use normalized type
|
// Check cache using standard type if available, otherwise use normalized type
|
||||||
const cacheKey = standardType || normalizedType;
|
const cacheKey = standardType || normalizedType;
|
||||||
if (typeColorMap.has(cacheKey)) {
|
if (typeColorMap.has(cacheKey)) {
|
||||||
return typeColorMap.get(cacheKey) || defaultColor;
|
return typeColorMap.get(cacheKey) || defaultColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (standardType) {
|
if (standardType) {
|
||||||
const color = NODE_TYPE_COLORS[standardType];
|
const color = NODE_TYPE_COLORS[standardType];
|
||||||
// Store using standard type name as key
|
// Store using standard type name as key
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue