diff --git a/ui/src/components/inputs/EditorView.vue b/ui/src/components/inputs/EditorView.vue index 4fad6d9ecb1..51d937a2c27 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,