diff --git a/packages/components/frontend/ConfigEditor.tsx b/packages/components/frontend/ConfigEditor.tsx index c32b5ea75..f39c0b732 100644 --- a/packages/components/frontend/ConfigEditor.tsx +++ b/packages/components/frontend/ConfigEditor.tsx @@ -149,6 +149,17 @@ export default function ConfigEditor({ setValue(yaml.load(v)); }, [stringConfig]); + // FIXME: Otherwise first form change will be ignored + React.useEffect(() => { + setTimeout(() => { + updateFromMonaco(`${stringConfig}\n\ndummy: 1`); + setTimeout(() => { + setStringConfig(stringConfig); + setValue(yaml.load(stringConfig)); + }, 300); + }, 300); + }, []); + const [size, setSize] = React.useState([50, 50]); return (