diff --git a/packages/nc-gui/components/dlg/TableCreate.vue b/packages/nc-gui/components/dlg/TableCreate.vue index 898bc56fea..47d10f81fc 100644 --- a/packages/nc-gui/components/dlg/TableCreate.vue +++ b/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)