diff --git a/ui/src/components/inputs/EditorView.vue b/ui/src/components/inputs/EditorView.vue index 8f954cb0c3..034384450c 100644 --- a/ui/src/components/inputs/EditorView.vue +++ b/ui/src/components/inputs/EditorView.vue @@ -739,7 +739,7 @@ }); } else { await store.dispatch("namespace/createFile", { - namespace: props.namespace, + namespace: props.namespace ?? routeParams.id, path: currentTab.value.path ?? currentTab.value.name, content: editorDomElement.value.$refs.monacoEditor.value, });