From 97ff9fb3859070ffdd9476c0c16e2368c7ffe568 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Mon, 30 Jan 2023 16:36:27 +0530 Subject: [PATCH] fix(gui): table rename duplicate validation Signed-off-by: Pranav C --- packages/nc-gui/components/dlg/TableRename.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/dlg/TableRename.vue b/packages/nc-gui/components/dlg/TableRename.vue index 212f02e3cb..8443b62c86 100644 --- a/packages/nc-gui/components/dlg/TableRename.vue +++ b/packages/nc-gui/components/dlg/TableRename.vue @@ -81,7 +81,7 @@ const validators = computed(() => { } if ( !(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'))