Skip to content

Commit

Permalink
fix(chat): fix validation of message template
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaBondar committed Oct 4, 2024
1 parent 5fbc094 commit 76cd42c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ export const TemplateRow = ({
if (templateRef.current) validate(templateRef?.current);
}, [template, validate]);

useEffect(()=>{
setValidationContentError('');
setValidationTemplateError('');
},[lastRow])

const handleChange = useCallback(
(event: ChangeEvent<HTMLTextAreaElement>) => {
onChange(
Expand Down

0 comments on commit 76cd42c

Please sign in to comment.