From 752fcd371a85ead9d78568518975910f6379d3db Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 1 Sep 2022 17:59:03 +0530 Subject: [PATCH] fix(gui-v2): pass client property to get sqlui Signed-off-by: Pranav C --- packages/nc-gui-v2/composables/useColumn.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/composables/useColumn.ts b/packages/nc-gui-v2/composables/useColumn.ts index 2b5bfd0809..a2c8f689c9 100644 --- a/packages/nc-gui-v2/composables/useColumn.ts +++ b/packages/nc-gui-v2/composables/useColumn.ts @@ -11,7 +11,9 @@ export function useColumn(column: Ref) { // kludge: CY test hack; column.value is being received NULL during attach cell delete operation isVirtualCol(column?.value) || !column?.value ? null - : SqlUiFactory.create(project.value?.bases?.[0]?.config || { client: 'mysql2' }).getAbstractType(column?.value), + : SqlUiFactory.create( + project.value?.bases?.[0]?.config ? { client: project.value.bases[0].config.type } : { client: 'mysql2' }, + ).getAbstractType(column?.value), ) const dataTypeLow = computed(() => column?.value?.dt?.toLowerCase())