skip loading data without columns

This commit is contained in:
Jan Prochazka 2022-09-01 13:35:51 +02:00
parent fdcf1c4c9a
commit 14f71e80d3

View File

@ -96,6 +96,10 @@ export class PerspectiveDataLoader {
async loadData(props: PerspectiveDataLoadProps) {
const { schemaName, pureName, bindingColumns, bindingValues, dataColumns, orderBy, condition } = props;
if (dataColumns?.length == 0) {
return [];
}
const select: Select = {
commandType: 'select',
from: {