add minor fix for required fields that are not displayed

This commit is contained in:
anovazzi1 2023-04-06 16:52:25 -03:00
commit dc1945c139

View file

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