add minor fix for required fields that are not displayed (#129)
This commit is contained in:
commit
b2402d6930
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ export default function Chat({ flow, reactFlowInstance }: ChatType) {
|
|||
return Object.keys(template).reduce(
|
||||
(errors: Array<string>, t) =>
|
||||
errors.concat(
|
||||
template[t].required &&
|
||||
(template[t].required && template[t].show) &&
|
||||
(!template[t].value || template[t].value === "") &&
|
||||
!reactFlowInstance
|
||||
.getEdges()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue