diff --git a/packages/nc-gui/components/dashboard/TreeView/ViewsNode.vue b/packages/nc-gui/components/dashboard/TreeView/ViewsNode.vue index 0d7194179c..965e9a7ff3 100644 --- a/packages/nc-gui/components/dashboard/TreeView/ViewsNode.vue +++ b/packages/nc-gui/components/dashboard/TreeView/ViewsNode.vue @@ -129,8 +129,7 @@ onKeyStroke('Enter', (event) => { }) const onRenameMenuClick = () => { - if (isMobileMode.value) return - if (!isUIAllowed('viewCreateOrEdit')) return + if (isMobileMode.value || !isUIAllowed('viewCreateOrEdit')) return if (!isEditing.value) { isEditing.value = true diff --git a/packages/nc-gui/components/project/View.vue b/packages/nc-gui/components/project/View.vue index dc3cae0cc8..603db6ee6d 100644 --- a/packages/nc-gui/components/project/View.vue +++ b/packages/nc-gui/components/project/View.vue @@ -1,12 +1,15 @@