From 4f8e7aa617e73c1682cef25848866c39b7cbd18f Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 4 Aug 2022 21:53:16 +0530 Subject: [PATCH] fix(gui-v2): replace with computed Signed-off-by: Pranav C --- packages/nc-gui-v2/components/virtual-cell/Lookup.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/components/virtual-cell/Lookup.vue b/packages/nc-gui-v2/components/virtual-cell/Lookup.vue index 66f45f10e4..b67a905ff8 100644 --- a/packages/nc-gui-v2/components/virtual-cell/Lookup.vue +++ b/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