Fix null reference on viewV1 get schema
This commit is contained in:
parent
abc1ba3335
commit
5d60da4714
|
@ -21,7 +21,7 @@ export default class ViewFetch extends BaseDataFetch<ViewV1Datasource, Table> {
|
|||
|
||||
getSchema(definition: Table) {
|
||||
const { datasource } = this.options
|
||||
return definition?.views?.[datasource.name]?.schema
|
||||
return definition?.views?.[datasource?.name]?.schema
|
||||
}
|
||||
|
||||
async getData() {
|
||||
|
|
Loading…
Reference in New Issue