From 9f884a9b8024294c427e4ffc5c4bd7c9bf6f5afc Mon Sep 17 00:00:00 2001 From: Gabriel Garcia Date: Fri, 15 May 2026 17:14:42 +0200 Subject: [PATCH] fix(force-value-fields) - set force value field as many times json schema wants --- src/components/form/fields/ForcedValueField.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/form/fields/ForcedValueField.tsx b/src/components/form/fields/ForcedValueField.tsx index 2d69f58e3..2f3a9716c 100644 --- a/src/components/form/fields/ForcedValueField.tsx +++ b/src/components/form/fields/ForcedValueField.tsx @@ -37,8 +37,7 @@ export function ForcedValueField({ useEffect(() => { setValue(name, value); - // oxlint-disable-next-line react-hooks/exhaustive-deps - }, []); + }, [name, value, setValue]); const isHiddenValue = !forcedValueDescription && !statement?.title;