Browse Source

fix(gui): table rename duplicate validation

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4968/head
Pranav C 2 years ago
parent
commit
97ff9fb385
  1. 2
      packages/nc-gui/components/dlg/TableRename.vue

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

@ -81,7 +81,7 @@ const validators = computed(() => {
} }
if ( if (
!(tables?.value || []).every( !(tables?.value || []).every(
(t) => t.id === tableMeta.id || t.table_name.toLowerCase() !== (value || '').toLowerCase(), (t) => t.id === tableMeta.id || t.title.toLowerCase() !== (value || '').toLowerCase(),
) )
) { ) {
return reject(new Error('Duplicate table alias')) return reject(new Error('Duplicate table alias'))

Loading…
Cancel
Save