Stop the sample data being identified as an external source.
This commit is contained in:
parent
a4ce8983e7
commit
7e33aacbb1
|
@ -11,6 +11,7 @@ import { InvalidColumns, NoEmptyFilterStrings } from "../constants"
|
||||||
import { helpers } from "@budibase/shared-core"
|
import { helpers } from "@budibase/shared-core"
|
||||||
import * as external from "../api/controllers/table/external"
|
import * as external from "../api/controllers/table/external"
|
||||||
import * as internal from "../api/controllers/table/internal"
|
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 DOUBLE_SEPARATOR = `${SEPARATOR}${SEPARATOR}`
|
||||||
const ROW_ID_REGEX = /^\[.*]$/g
|
const ROW_ID_REGEX = /^\[.*]$/g
|
||||||
|
@ -96,7 +97,8 @@ export function isInternalTableID(tableId: string) {
|
||||||
export function isExternalTable(table: Table) {
|
export function isExternalTable(table: Table) {
|
||||||
if (
|
if (
|
||||||
table?.sourceId &&
|
table?.sourceId &&
|
||||||
table.sourceId.includes(DocumentType.DATASOURCE + SEPARATOR)
|
table.sourceId.includes(DocumentType.DATASOURCE + SEPARATOR) &&
|
||||||
|
table?.sourceId !== DEFAULT_BB_DATASOURCE_ID
|
||||||
) {
|
) {
|
||||||
return true
|
return true
|
||||||
} else if (table?.sourceType === TableSourceType.EXTERNAL) {
|
} else if (table?.sourceType === TableSourceType.EXTERNAL) {
|
||||||
|
|
Loading…
Reference in New Issue