🐛 fix(chatModal): fix conditional statement to check for undefined and null values

The conditional statement in line 292 was not properly checking for undefined and null values, which could lead to unexpected behavior. The fix ensures that the statement checks for all falsy values, including undefined and null.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-06-07 06:25:08 -03:00
commit 7bba3fd087

View file

@ -290,7 +290,9 @@ export default function ChatModal({
errors.concat(
template[t].required &&
template[t].show &&
(!template[t].value || template[t].value === "") &&
(template[t].value === undefined ||
template[t].value === null ||
template[t].value === "") &&
!reactFlowInstance
.getEdges()
.some(