Files
nocodb/packages/nc-gui/utils/validateFormulaGetMeta.ts
mertmit 69a29568c7 chore: sync
Signed-off-by: mertmit <mertmit99@gmail.com>
2026-01-10 00:21:02 +03:00

17 lines
447 B
TypeScript

import type { TableType, UnifiedMetaType } from 'nocodb-sdk'
export const validateFormulaGetMeta = (
getMeta: (
baseId: string,
tableIdOrTitle: string,
force?: boolean,
skipIfCacheMiss?: boolean,
disableError?: boolean,
navigateOnNotFound?: boolean,
) => Promise<TableType | null>,
) => {
return (async (context, { id }) => {
return getMeta(context.base_id, id, false, false)
}) as UnifiedMetaType.IGetModel
}