1
0
Fork 0
mirror of synced 2024-07-06 15:00:49 +12:00
This commit is contained in:
Adria Navarro 2023-07-21 13:28:19 +02:00
parent 54c3791b25
commit 25d993cb95

View file

@ -8,7 +8,7 @@ export default class ViewV2Fetch extends DataFetch {
async getDefinition(datasource) {
try {
const table = await this.API.fetchTableDefinition(datasource.tableId)
const view = table.views.find(v => v.id === datasource.id)
const view = Object.values(table.views).find(v => v.id === datasource.id)
const { schema } = view
return { schema }
} catch (error) {