diff --git a/packages/nc-gui-v2/components/smartsheet/sidebar/MenuTop.vue b/packages/nc-gui-v2/components/smartsheet/sidebar/MenuTop.vue index 411dce49dc..d207685fc1 100644 --- a/packages/nc-gui-v2/components/smartsheet/sidebar/MenuTop.vue +++ b/packages/nc-gui-v2/components/smartsheet/sidebar/MenuTop.vue @@ -148,12 +148,14 @@ async function onRename(view: ViewType) { message: valid, duration: 2, }) + + return } try { await api.dbView.update(view.id!, { title: view.title, - order: view.order, + order: String(view.order), }) notification.success({ diff --git a/packages/nc-gui-v2/components/smartsheet/sidebar/RenameableMenuItem.vue b/packages/nc-gui-v2/components/smartsheet/sidebar/RenameableMenuItem.vue index d28ad94026..32db58713a 100644 --- a/packages/nc-gui-v2/components/smartsheet/sidebar/RenameableMenuItem.vue +++ b/packages/nc-gui-v2/components/smartsheet/sidebar/RenameableMenuItem.vue @@ -8,11 +8,11 @@ interface Props { } interface Emits { - (event: 'openModal', data: { type: ViewTypes; title?: string }): void (event: 'update:view', data: Record): void (event: 'changeView', view: Record): void (event: 'rename', view: Record): void (event: 'delete', view: Record): void + (event: 'openModal', data: { type: ViewTypes; title?: string; copyViewId?: string }): void } const props = defineProps()