fix(chatModal/index.ts) updated validation condition for required properties of nodes, to allow False values to be accepted (#413)

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-05-31 16:40:30 -03:00 • committed by GitHub
commit 2b716fb981
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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