Stop the sample data being identified as an external source.

This commit is contained in:
Dean 2023-10-31 14:48:23 +00:00
parent a4ce8983e7
commit 7e33aacbb1
1 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,7 @@ import { InvalidColumns, NoEmptyFilterStrings } from "../constants"
import { helpers } from "@budibase/shared-core"
import * as external from "../api/controllers/table/external"
import * as internal from "../api/controllers/table/internal"
import { DEFAULT_BB_DATASOURCE_ID } from "../db/defaultData/datasource_bb_default"
const DOUBLE_SEPARATOR = `${SEPARATOR}${SEPARATOR}`
const ROW_ID_REGEX = /^\[.*]$/g
@ -96,7 +97,8 @@ export function isInternalTableID(tableId: string) {
export function isExternalTable(table: Table) {
if (
table?.sourceId &&
table.sourceId.includes(DocumentType.DATASOURCE + SEPARATOR)
table.sourceId.includes(DocumentType.DATASOURCE + SEPARATOR) &&
table?.sourceId !== DEFAULT_BB_DATASOURCE_ID
) {
return true
} else if (table?.sourceType === TableSourceType.EXTERNAL) {