From 439cf2e7eccc77bf2aec26d211dd078d369aae5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Paunovi=C4=87?= Date: Tue, 23 Jul 2024 14:19:20 +0200 Subject: [PATCH] fix(ui): properly load flows for editor --- ui/src/components/inputs/MonacoEditor.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/components/inputs/MonacoEditor.vue b/ui/src/components/inputs/MonacoEditor.vue index 88dab38aee..043a95ba81 100644 --- a/ui/src/components/inputs/MonacoEditor.vue +++ b/ui/src/components/inputs/MonacoEditor.vue @@ -183,7 +183,7 @@ this.initMonaco(monaco) }) - if (!this.monacoYamlConfigured && this.currentTab?.flow) { + if (!this.monacoYamlConfigured && (this.creating || this.currentTab?.flow)) { this.$store.commit("core/setMonacoYamlConfigured", true); configureMonacoYaml(monaco, { enableSchemaRequest: true,