From 6e519e00717b2c6575999d247bb2612955ee62ab Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Thu, 29 Dec 2022 09:37:04 -0700 Subject: [PATCH] Fix error when saving the config unsuccessfully (#4780) --- 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;