diff --git a/frontend/src/lib/components/SchemaEditor.svelte b/frontend/src/lib/components/SchemaEditor.svelte index c42834957e..cf52d6e29e 100644 --- a/frontend/src/lib/components/SchemaEditor.svelte +++ b/frontend/src/lib/components/SchemaEditor.svelte @@ -102,7 +102,9 @@ } schema = schema schemaString = JSON.stringify(schema, null, '\t') - jsonEditor.setCode(schemaString) + if (jsonEditor) { + jsonEditor.setCode(schemaString) + } dispatch('change', schema) }