From 9273d732b0c3987b101c43e4d7d5cd70cfc4d12d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Paunovi=C4=87?= Date: Fri, 24 Jan 2025 17:27:36 +0100 Subject: [PATCH] fix(ui): save content to proper file using the namespace file editor (#6931) --- ui/src/components/inputs/EditorView.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/src/components/inputs/EditorView.vue b/ui/src/components/inputs/EditorView.vue index d771bf5b8b7..c79c1cb4d17 100644 --- a/ui/src/components/inputs/EditorView.vue +++ b/ui/src/components/inputs/EditorView.vue @@ -737,6 +737,8 @@ } }); } else { + if(!currentTab.value.dirty) return; + await store.dispatch("namespace/createFile", { namespace: props.namespace ?? routeParams.id, path: currentTab.value.path ?? currentTab.value.name,