mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 17:16:01 +00:00
reimplemented filter, sort for new model
This commit is contained in:
@@ -303,7 +303,7 @@ export abstract class PerspectiveTreeNode {
|
||||
getOrderBy(table: TableInfo | ViewInfo): PerspectiveDataLoadProps['orderBy'] {
|
||||
const res = _compact(
|
||||
this.childNodes.map(node => {
|
||||
const sort = this.parentNodeConfig?.sort?.find(x => x.columnName == node.columnName);
|
||||
const sort = this.nodeConfig?.sort?.find(x => x.columnName == node.columnName);
|
||||
if (sort) {
|
||||
return {
|
||||
columnName: node.columnName,
|
||||
|
||||
Reference in New Issue
Block a user