From ea860b9c118aaa04288aaa1b91aeaa2a5622b6ee Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Thu, 16 Mar 2023 16:11:45 +0800 Subject: [PATCH] fix(nc-gui): remove alias validation as it doesnt exist --- packages/nc-gui/components/dlg/ViewCreate.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/nc-gui/components/dlg/ViewCreate.vue b/packages/nc-gui/components/dlg/ViewCreate.vue index 24ef21da74..5525be1a0b 100644 --- a/packages/nc-gui/components/dlg/ViewCreate.vue +++ b/packages/nc-gui/components/dlg/ViewCreate.vue @@ -75,9 +75,7 @@ const viewNameRules = [ { validator: (_: unknown, v: string) => new Promise((resolve, reject) => { - views.every((v1) => ((v1 as GridType | KanbanType | GalleryType | MapType).alias || v1.title) !== v) - ? resolve(true) - : reject(new Error(`View name should be unique`)) + views.every((v1) => v1.title !== v) ? resolve(true) : reject(new Error(`View name should be unique`)) }), message: 'View name should be unique', },