Browse Source

fix(gui-v2): editing view name results in empty title

pull/2837/head
braks 2 years ago
parent
commit
1c31dedb47
  1. 4
      packages/nc-gui-v2/components/smartsheet/Sidebar.vue

4
packages/nc-gui-v2/components/smartsheet/Sidebar.vue

@ -237,8 +237,6 @@ async function onRename(index: number) {
const valid = validate(view?.title)
console.log(valid)
if (valid !== true) {
notification.error({
message: valid,
@ -274,6 +272,8 @@ async function onRename(index: number) {
/** Cancel renaming view */
function onCancel(index: number) {
if (isEditing === null) return
views.value[index].title = originalTitle
onStopEdit()
}

Loading…
Cancel
Save