mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
fixed ordering
This commit is contained in:
parent
781d6f1585
commit
9f553ef52a
@ -238,7 +238,13 @@ export class PerspectiveDataLoader {
|
||||
const res: any = {
|
||||
pureName,
|
||||
condition: this.buildSqlCondition(props),
|
||||
sort: useSort ? props.orderBy : undefined,
|
||||
sort:
|
||||
useSort && props.orderBy?.length > 0
|
||||
? props.orderBy.map(x => ({
|
||||
...x,
|
||||
direction: x.order,
|
||||
}))
|
||||
: undefined,
|
||||
skip: props.range?.offset,
|
||||
limit: props.range?.limit,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user