Browse Source

chore(gui-v2): add name to `useHasMany`

pull/2877/head
braks 2 years ago
parent
commit
3536d38bbc
  1. 2
      packages/nc-gui-v2/composables/useHasMany.ts

2
packages/nc-gui-v2/composables/useHasMany.ts

@ -1,7 +1,7 @@
import type { ColumnType, TableType } from 'nocodb-sdk'
import { useMetas } from './useMetas'
export default function (column: ColumnType) {
export function useHasMany(column: ColumnType) {
const { metas, getMeta } = useMetas()
const childMeta = computed<TableType>(() => {
return metas.value?.[(column.colOptions as any)?.fk_related_model_id as string]

Loading…
Cancel
Save