Fix null reference on viewV1 get schema

This commit is contained in:
Adria Navarro 2025-01-23 11:40:18 +01:00
parent abc1ba3335
commit 5d60da4714
1 changed files with 1 additions and 1 deletions

View File

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