Adding utilities.

This commit is contained in:
mike12345567 2023-10-18 18:58:27 +01:00
parent 8d1163e50d
commit 25ad78a94e
1 changed files with 11 additions and 0 deletions

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
}