From 03d747df9651d7b6ac0fb8b78cb2b8cd535068a3 Mon Sep 17 00:00:00 2001 From: Aaron Chong Date: Fri, 27 Sep 2024 17:10:26 +0800 Subject: [PATCH] Reverting the validation step when a patrol task form is rendered (#1013) * Reverting the validation step when a patrol task form is rendered, which fixes 1012 Signed-off-by: Aaron Chong * Lint Signed-off-by: Aaron Chong --------- Signed-off-by: Aaron Chong --- packages/react-components/lib/tasks/types/patrol.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/react-components/lib/tasks/types/patrol.tsx b/packages/react-components/lib/tasks/types/patrol.tsx index 5fa3ea4d5..707dff5e4 100644 --- a/packages/react-components/lib/tasks/types/patrol.tsx +++ b/packages/react-components/lib/tasks/types/patrol.tsx @@ -125,6 +125,10 @@ export function PatrolTaskForm({ onChange(desc); }; + React.useEffect(() => { + onValidate(isPatrolTaskDescriptionValid(taskDesc)); + }, [onValidate, taskDesc]); + return (