From d269fb426367b5fec26ae79f5dce0521a9969f0b Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 13 Oct 2022 13:06:32 +0530 Subject: [PATCH] chore(gui): lint Signed-off-by: Pranav C --- packages/nc-gui/components/smartsheet/Grid.vue | 2 +- packages/nc-gui/composables/useSmartsheetRowStore.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/Grid.vue b/packages/nc-gui/components/smartsheet/Grid.vue index c2a83b0e4a..78f59efc0b 100644 --- a/packages/nc-gui/components/smartsheet/Grid.vue +++ b/packages/nc-gui/components/smartsheet/Grid.vue @@ -582,7 +582,7 @@ watch(
{{ $t('activity.clearCell') }}
diff --git a/packages/nc-gui/composables/useSmartsheetRowStore.ts b/packages/nc-gui/composables/useSmartsheetRowStore.ts index 63753306be..7873389e26 100644 --- a/packages/nc-gui/composables/useSmartsheetRowStore.ts +++ b/packages/nc-gui/composables/useSmartsheetRowStore.ts @@ -122,7 +122,7 @@ const [useProvideSmartsheetRowStore, useSmartsheetRowStore] = useInjectionState( // clear LTAR cell const clearLTARCell = async (column: ColumnType) => { - if(!column || column.uidt!==UITypes.LinkToAnotherRecord) return + if (!column || column.uidt !== UITypes.LinkToAnotherRecord) return const relatedTableMeta = metas.value?.[(column?.colOptions)?.fk_related_model_id as string] @@ -130,7 +130,7 @@ const [useProvideSmartsheetRowStore, useSmartsheetRowStore] = useInjectionState( state.value[column.title!] = null } else if (currentRow.value) { if ((column.colOptions)?.type === RelationTypes.BELONGS_TO) { - if(!currentRow.value.row[column.title!]) return + if (!currentRow.value.row[column.title!]) return await $api.dbTableRow.nestedRemove( NOCO, project.value.title as string, @@ -151,7 +151,7 @@ const [useProvideSmartsheetRowStore, useSmartsheetRowStore] = useInjectionState( column.title as string, extractPkFromRow(link, relatedTableMeta?.columns as ColumnType[]), ) - } + } } } }