Browse Source

chore(gui-v2): lint

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2860/head
Pranav C 2 years ago
parent
commit
b3d043bb67
  1. 1
      packages/nc-gui-v2/components/tabs/Smartsheet.vue
  2. 5
      packages/nc-gui-v2/composables/useViewData.ts

1
packages/nc-gui-v2/components/tabs/Smartsheet.vue

@ -1,6 +1,7 @@
<script setup lang="ts">
import type { ColumnType, TableType, ViewType } from 'nocodb-sdk'
import { ViewTypes } from 'nocodb-sdk'
import type { Ref } from 'vue'
import SmartsheetGrid from '../smartsheet/Grid.vue'
import { computed, inject, provide, useMetas, watch, watchEffect } from '#imports'
import { useProvideSmartsheetStore } from '~/composables/useSmartsheetStore'

5
packages/nc-gui-v2/composables/useViewData.ts

@ -13,10 +13,7 @@ const formatData = (list: Record<string, any>[]) =>
export function useViewData(
meta: Ref<TableType> | ComputedRef<TableType> | undefined,
viewMeta:
| Ref<(ViewType) & { id: string }>
| ComputedRef<(ViewType) & { id: string }>
| undefined,
viewMeta: Ref<ViewType & { id: string }> | ComputedRef<ViewType & { id: string }> | undefined,
where?: ComputedRef<string | undefined>,
) {
const data = ref<Record<string, any>[]>()

Loading…
Cancel
Save