Browse Source

fix(gui-v2): ternary condition correction

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

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

@ -12,7 +12,7 @@ export function useColumn(column: Ref<ColumnType>) {
return isVirtualCol(column?.value) || !column?.value
? null
: SqlUiFactory.create(
project.value?.bases?.[0]?.config ? { client: project.value.bases[0].type } : { client: 'mysql2' },
project.value?.bases?.[0]?.type ? { client: project.value.bases[0].type } : { client: 'mysql2' },
).getAbstractType(column?.value)
})

Loading…
Cancel
Save