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) {
const table = $tables.list.find(table => table._id === linkField.tableId)
if (!table) {
if (!table || !table.sql) {
return []
}
const linkFields = getFields(Object.values(table.schema), {

View File

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