🐛 fix(utils.ts): simplify ternary operator in validateNode function
The ternary operator in the validateNode function was simplified by removing the unnecessary if statement. The code is now more concise and easier to read.
This commit is contained in:
parent
d4559c1356
commit
0645693069
1 changed files with 1 additions and 3 deletions
|
|
@ -749,9 +749,7 @@ export function validateNode(
|
|||
)
|
||||
? [
|
||||
`${type} is missing ${
|
||||
template.display_name
|
||||
? template.display_name
|
||||
: toNormalCase(template[t].name)
|
||||
template.display_name || toNormalCase(template[t].name)
|
||||
}.`,
|
||||
]
|
||||
: []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue