Browse Source

Ensure existing invalid datasource definitions are also fixed by checking data source type before fetching table definitions

master
Andrew Kingston 5 years ago
parent
commit
f05844192c
  1. 2
      packages/client/src/components/app/forms/Form.svelte

2
packages/client/src/components/app/forms/Form.svelte

@ -80,7 +80,7 @@
}
const fetchTable = async dataSource => {
if (dataSource?.tableId) {
if (dataSource?.tableId && dataSource?.type !== "query") {
try {
table = await API.fetchTableDefinition(dataSource.tableId)
} catch (error) {

Loading…
Cancel
Save