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,