diff --git a/packages/ui-concerto/src/lib/components/concertoForm.js b/packages/ui-concerto/src/lib/components/concertoForm.js index 29c086a7..785a3259 100644 --- a/packages/ui-concerto/src/lib/components/concertoForm.js +++ b/packages/ui-concerto/src/lib/components/concertoForm.js @@ -34,6 +34,10 @@ const ConcertoForm = (props) => { const [modelManager, setModelManager] = useState(null); const { onValueChange, options, models } = props; + useEffect(() => { + setValue(props.json); + }, [props.json]); + const onFieldValueChange = useCallback((e, key) => { const fieldValue = e.type === 'checkbox' ? e.checked : e.value; const valueClone = set({ ...value }, key, fieldValue);