🐛 fix(reactflowUtils.ts): remove unnecessary condition for template[t].type to improve code readability and maintainability
This commit is contained in:
parent
a6c80a8780
commit
83271fa0e8
1 changed files with 1 additions and 1 deletions
|
|
@ -221,7 +221,7 @@ export function validateNode(
|
|||
) {
|
||||
errors.push(`${type} is missing ${template.display_name || toNormalCase(template[t].name)}.`);
|
||||
} else if (
|
||||
(template[t].type === "dict" || template[t].type === "NestedDict") &&
|
||||
(template[t].type === "dict") &&
|
||||
template[t].required &&
|
||||
template[t].show &&
|
||||
(template[t].value !== undefined ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue