1
0
Fork 0
mirror of synced 2024-10-06 04:54:52 +13:00

Adding utilities.

This commit is contained in:
mike12345567 2023-10-18 18:58:27 +01:00
parent 8d1163e50d
commit 25ad78a94e

View file

@ -0,0 +1,11 @@
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
}