From e05f7e2f94e6c24ac8758361999b9d98d34a118f Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Thu, 11 Aug 2022 17:43:13 +0800 Subject: [PATCH] chore(gui-v2): lint --- packages/nc-gui-v2/composables/useViewData.ts | 4 ++-- packages/nc-gui-v2/composables/useViews.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui-v2/composables/useViewData.ts b/packages/nc-gui-v2/composables/useViewData.ts index 16b689563d..4ede705be5 100644 --- a/packages/nc-gui-v2/composables/useViewData.ts +++ b/packages/nc-gui-v2/composables/useViewData.ts @@ -1,4 +1,4 @@ -import type { Api, FormType, ColumnType, GalleryType, PaginatedType, TableType, ViewType } from 'nocodb-sdk' +import type { Api, ColumnType, FormType, GalleryType, PaginatedType, TableType, ViewType } from 'nocodb-sdk' import type { ComputedRef, Ref } from 'vue' import { notification } from 'ant-design-vue' import { useNuxtApp } from '#app' @@ -209,7 +209,7 @@ export function useViewData( const deleteRowById = async (id: string) => { if (!id) { - throw new Error('Delete not allowed for table which doesn\'t have primary Key') + throw new Error("Delete not allowed for table which doesn't have primary Key") } const res: any = await $api.dbViewRow.delete( diff --git a/packages/nc-gui-v2/composables/useViews.ts b/packages/nc-gui-v2/composables/useViews.ts index da31a37944..a2ceb47a96 100644 --- a/packages/nc-gui-v2/composables/useViews.ts +++ b/packages/nc-gui-v2/composables/useViews.ts @@ -3,7 +3,7 @@ import type { MaybeRef } from '@vueuse/core' import { useNuxtApp } from '#app' export function useViews(meta: MaybeRef) { - let views = $ref([]) + const views = $ref([]) const { $api } = useNuxtApp() const loadViews = async () => {