Skip to content

Commit

Permalink
Fix error when saving the config unsuccessfully (blakeblackshear#4780)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Dec 29, 2022
1 parent f3e0ced commit 6e519e0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions web/src/routes/Config.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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:https://b/api/config/schema.json');

let yamlModel;
Expand Down

0 comments on commit 6e519e0

Please sign in to comment.