Fix error when saving the config unsuccessfully

This commit is contained in:
Nick Mowen 2022-12-22 08:04:30 -07:00
parent d999575832
commit dbd352a7c2

View File

@ -48,6 +48,11 @@ export default function Config() {
return; return;
} }
if (window.editor) {
// we don't need to recreate the editor if it already exists
return;
}
const modelUri = Uri.parse('a://b/api/config/schema.json'); const modelUri = Uri.parse('a://b/api/config/schema.json');
let yamlModel; let yamlModel;