From dbd352a7c247cbcdf60082c454883d372e5de9fc Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Thu, 22 Dec 2022 08:04:30 -0700 Subject: [PATCH] Fix error when saving the config unsuccessfully --- web/src/routes/Config.jsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/src/routes/Config.jsx b/web/src/routes/Config.jsx index 678619301..ee01d8d01 100644 --- a/web/src/routes/Config.jsx +++ b/web/src/routes/Config.jsx @@ -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;