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"> <script setup lang="ts">
import type { ColumnType, TableType, ViewType } from 'nocodb-sdk' import type { ColumnType, TableType, ViewType } from 'nocodb-sdk'
import { ViewTypes } from 'nocodb-sdk' import { ViewTypes } from 'nocodb-sdk'
import type { Ref } from 'vue'
import SmartsheetGrid from '../smartsheet/Grid.vue' import SmartsheetGrid from '../smartsheet/Grid.vue'
import { computed, inject, provide, useMetas, watch, watchEffect } from '#imports' import { computed, inject, provide, useMetas, watch, watchEffect } from '#imports'
import { useProvideSmartsheetStore } from '~/composables/useSmartsheetStore' 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( export function useViewData(
meta: Ref<TableType> | ComputedRef<TableType> | undefined, meta: Ref<TableType> | ComputedRef<TableType> | undefined,
viewMeta: viewMeta: Ref<ViewType & { id: string }> | ComputedRef<ViewType & { id: string }> | undefined,
| Ref<(ViewType) & { id: string }>
| ComputedRef<(ViewType) & { id: string }>
| undefined,
where?: ComputedRef<string | undefined>, where?: ComputedRef<string | undefined>,
) { ) {
const data = ref<Record<string, any>[]>() const data = ref<Record<string, any>[]>()

Loading…
Cancel
Save