Browse Source

chore(gui-v2): lint

pull/3051/head
Wing-Kam Wong 2 years ago
parent
commit
e05f7e2f94
  1. 4
      packages/nc-gui-v2/composables/useViewData.ts
  2. 2
      packages/nc-gui-v2/composables/useViews.ts

4
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(

2
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<TableType | undefined>) {
let views = $ref<ViewType[]>([])
const views = $ref<ViewType[]>([])
const { $api } = useNuxtApp()
const loadViews = async () => {

Loading…
Cancel
Save