Browse Source

fix(nc-gui): remove alias validation as it doesnt exist

pull/5307/head
Wing-Kam Wong 2 years ago
parent
commit
ea860b9c11
  1. 4
      packages/nc-gui/components/dlg/ViewCreate.vue

4
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',
},

Loading…
Cancel
Save