Browse Source

Merge pull request #5479 from nocodb/fix/table-name-across-data-source

fix(nc-gui): table alias across bases
pull/5519/head
Raju Udava 1 year ago committed by GitHub
parent
commit
24a526ab87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/nc-gui/components/dlg/TableCreate.vue

2
packages/nc-gui/components/dlg/TableCreate.vue

@ -53,7 +53,7 @@ const validators = computed(() => {
validator: (_: any, value: any) => {
// validate duplicate alias
return new Promise((resolve, reject) => {
if ((tables.value || []).some((t) => t.title === (value || ''))) {
if ((tables.value || []).some((t) => t.title === (value || '') && t.base_id === props.baseId)) {
return reject(new Error('Duplicate table alias'))
}
return resolve(true)

Loading…
Cancel
Save