mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-26 09:36:07 +08:00
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:
@ -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(
|
||||
|
||||
Reference in New Issue
Block a user