Quick fix, only allow using SQL.

This commit is contained in:
mike12345567 2022-01-13 16:48:19 +00:00
parent 90859cfe18
commit 41b9c94237
2 changed files with 1 additions and 2 deletions

View File

@ -26,7 +26,7 @@
function getTableFields(linkField) { function getTableFields(linkField) {
const table = $tables.list.find(table => table._id === linkField.tableId) const table = $tables.list.find(table => table._id === linkField.tableId)
if (!table) { if (!table || !table.sql) {
return [] return []
} }
const linkFields = getFields(Object.values(table.schema), { const linkFields = getFields(Object.values(table.schema), {

View File

@ -1,6 +1,5 @@
import { SourceNames, SqlQuery } from "../definitions/datasource" import { SourceNames, SqlQuery } from "../definitions/datasource"
import { Datasource, Table } from "../definitions/common" import { Datasource, Table } from "../definitions/common"
import { SourceNames } from "../definitions/datasource"
import { DocumentTypes, SEPARATOR } from "../db/utils" import { DocumentTypes, SEPARATOR } from "../db/utils"
import { FieldTypes, BuildSchemaErrors, InvalidColumns } from "../constants" import { FieldTypes, BuildSchemaErrors, InvalidColumns } from "../constants"