diff --git a/ui/src/components/inputs/EditorView.vue b/ui/src/components/inputs/EditorView.vue index 356c1241bc7..dde905779a9 100644 --- a/ui/src/components/inputs/EditorView.vue +++ b/ui/src/components/inputs/EditorView.vue @@ -1085,6 +1085,8 @@ } }); } else { + if(!currentTab.value.dirty) return; + await store.dispatch("namespace/createFile", { namespace: props.namespace ?? routeParams.id, path: currentTab.value.path ?? currentTab.value.name,