Ensure existing invalid datasource definitions are also fixed by checking data source type before fetching table definitions
This commit is contained in:
parent
c9d0791a0e
commit
adc6008c4c
|
@ -76,7 +76,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) {
|
||||||
|
|
Loading…
Reference in New Issue