12 lines
353 B
TypeScript
12 lines
353 B
TypeScript
import { Table } from "@budibase/types"
|
|
import { isExternalTable } from "../../../integrations/utils"
|
|
|
|
export function isExternal(opts: { table?: Table; tableId?: string }): boolean {
|
|
if (opts.table && opts.table.type === "external") {
|
|
return true
|
|
} else if (opts.tableId && isExternalTable(opts.tableId)) {
|
|
return true
|
|
}
|
|
return false
|
|
}
|