Browse Source

fix(gui-v2): pass client property to get sqlui

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3435/head
Pranav C 2 years ago
parent
commit
752fcd371a
  1. 4
      packages/nc-gui-v2/composables/useColumn.ts

4
packages/nc-gui-v2/composables/useColumn.ts

@ -11,7 +11,9 @@ export function useColumn(column: Ref<ColumnType>) {
// 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())

Loading…
Cancel
Save