Skip to content

Commit 6ccb1e0

Browse files
authored
fix(force-value-fields) - set force value field as many times json schema wants (#1032)
1 parent 271e840 commit 6ccb1e0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/components/form/fields/ForcedValueField.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ export function ForcedValueField({
3737

3838
useEffect(() => {
3939
setValue(name, value);
40-
// oxlint-disable-next-line react-hooks/exhaustive-deps
41-
}, []);
40+
}, [name, value, setValue]);
4241

4342
const isHiddenValue = !forcedValueDescription && !statement?.title;
4443

0 commit comments

Comments
 (0)