Browse Source

fix(nc-gui): list response in view columns

pull/5269/head
Wing-Kam Wong 2 years ago
parent
commit
95847b51ec
  1. 2
      packages/nc-gui/composables/useViewColumns.ts

2
packages/nc-gui/composables/useViewColumns.ts

@ -50,7 +50,7 @@ export function useViewColumns(
let order = 1
if (view.value?.id) {
const data = (isPublic.value ? meta.value?.columns : (await $api.dbViewColumn.list(view.value.id))).list as any[]
const data = (isPublic.value ? meta.value?.columns : (await $api.dbViewColumn.list(view.value.id)).list) as any[]
const fieldById = data.reduce<Record<string, any>>((acc, curr) => {
curr.show = !!curr.show

Loading…
Cancel
Save