1
0
Fork 0
mirror of synced 2024-09-20 19:33:10 +12:00

Fix to switch internal source check from table.sql to table.sourceType === DB_TYPE_INTERNAL. After the SQS changes table.sql becomes true for internal types

This commit is contained in:
Dean 2024-07-22 12:37:40 +01:00
parent 3ab67e35db
commit 75217efee4
2 changed files with 3 additions and 3 deletions

View file

@ -682,7 +682,7 @@
{errors} {errors}
/> />
{:else if editableColumn.type === FORMULA_TYPE} {:else if editableColumn.type === FORMULA_TYPE}
{#if !table.sql} {#if !externalTable}
<div class="split-label"> <div class="split-label">
<div class="label-length"> <div class="label-length">
<Label size="M">Formula Type</Label> <Label size="M">Formula Type</Label>

View file

@ -29,7 +29,7 @@ import { JSONUtils, Constants } from "@budibase/frontend-core"
import ActionDefinitions from "components/design/settings/controls/ButtonActionEditor/manifest.json" import ActionDefinitions from "components/design/settings/controls/ButtonActionEditor/manifest.json"
import { environment, licensing } from "stores/portal" import { environment, licensing } from "stores/portal"
import { convertOldFieldFormat } from "components/design/settings/controls/FieldConfiguration/utils" import { convertOldFieldFormat } from "components/design/settings/controls/FieldConfiguration/utils"
import { FIELDS } from "constants/backend" import { FIELDS, DB_TYPE_INTERNAL } from "constants/backend"
import { FieldType } from "@budibase/types" import { FieldType } from "@budibase/types"
const { ContextScopes } = Constants const { ContextScopes } = Constants
@ -991,7 +991,7 @@ export const getSchemaForDatasource = (asset, datasource, options) => {
} }
// Determine if we should add ID and rev to the schema // Determine if we should add ID and rev to the schema
const isInternal = table && !table.sql const isInternal = table && table?.sourceType === DB_TYPE_INTERNAL
const isDSPlus = ["table", "link", "viewV2"].includes(datasource.type) const isDSPlus = ["table", "link", "viewV2"].includes(datasource.type)
// ID is part of the readable schema for all tables // ID is part of the readable schema for all tables