Browse Source

fix(gui-v2): replace with computed

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2990/head
Pranav C 2 years ago
parent
commit
4f8e7aa617
  1. 2
      packages/nc-gui-v2/components/virtual-cell/Lookup.vue

2
packages/nc-gui-v2/components/virtual-cell/Lookup.vue

@ -11,7 +11,7 @@ provide(ReadonlyInj, true)
const column = inject(ColumnInj) as ColumnType & { colOptions: LookupType }
const meta = inject(MetaInj)
const value = inject(ValueInj)
const arrValue = Array.isArray(value) ? value : [value]
const arrValue = computed(() => (Array.isArray(value?.value) ? value?.value : [value?.value]))
const relationColumn = meta?.value.columns?.find((c) => c.id === column.colOptions.fk_relation_column_id) as ColumnType & {
colOptions: LinkToAnotherRecordType

Loading…
Cancel
Save