1
0
Fork 0
mirror of synced 2024-06-03 02:55:14 +12:00

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 69ec82856c
commit f05844192c

View file

@ -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) {