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

This commit is contained in:
Andrew Kingston 2022-04-13 10:27:32 +01:00
parent 3bb9834895
commit cb90b872f5
1 changed files with 1 additions and 1 deletions

View File

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