From 3f7c3338b5cfc82e23c93500a8e4a13477948c55 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 9 Feb 2023 11:47:54 +0530 Subject: [PATCH] refactor(gui): remove unused import and specify types Signed-off-by: Pranav C --- packages/nc-gui/components/virtual-cell/Lookup.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui/components/virtual-cell/Lookup.vue b/packages/nc-gui/components/virtual-cell/Lookup.vue index ac60e858b4..b5a8abc9af 100644 --- a/packages/nc-gui/components/virtual-cell/Lookup.vue +++ b/packages/nc-gui/components/virtual-cell/Lookup.vue @@ -6,7 +6,6 @@ import { CellValueInj, ColumnInj, MetaInj, - ReadonlyInj, computed, inject, isAttachment, @@ -27,7 +26,7 @@ const cellValue = inject(CellValueInj, ref()) const relationColumn = computed( () => - meta.value?.columns?.find((c) => c.id === (column.value?.colOptions as LookupType)?.fk_relation_column_id) as + meta.value?.columns?.find((c: ColumnType) => c.id === (column.value?.colOptions as LookupType)?.fk_relation_column_id) as | (ColumnType & { colOptions: LinkToAnotherRecordType | undefined }) @@ -36,7 +35,7 @@ const relationColumn = computed( watch( relationColumn, - async (relationCol) => { + async (relationCol: { colOptions: LinkToAnotherRecordType }) => { if (relationCol && relationCol.colOptions) await getMeta(relationCol.colOptions.fk_related_model_id!) }, { immediate: true },