Fix
This commit is contained in:
parent
54c3791b25
commit
25d993cb95
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue