mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
skip loading data without columns
This commit is contained in:
parent
fdcf1c4c9a
commit
14f71e80d3
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user