Browse Source

fix(nc-gui): include ds checking when creating a table

pull/5479/head
Wing-Kam Wong 2 years ago
parent
commit
8598786866
  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