🐛 fix(reactflowUtils.ts): remove unnecessary condition for template[t].type to improve code readability and maintainability

This commit is contained in:
Cristhian Zanforlin Lousa 2023-09-18 22:59:40 -03:00
commit 83271fa0e8

View file

@ -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 ||