Fix error when saving the config unsuccessfully (#4780)

This commit is contained in:
Nicolas Mowen 2022-12-29 09:37:04 -07:00 committed by GitHub
parent f3e0ced1cd
commit 6e519e0071
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,6 +48,11 @@ export default function Config() {
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');
let yamlModel;