mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 16:06:01 +00:00
perspective sort - divided by table
This commit is contained in:
@@ -188,7 +188,7 @@ export abstract class PerspectiveTreeNode {
|
||||
getOrderBy(table: TableInfo): PerspectiveDataLoadProps['orderBy'] {
|
||||
const res = _compact(
|
||||
this.childNodes.map(node => {
|
||||
const sort = this.config?.sort?.find(x => x.uniqueName == node.uniqueName);
|
||||
const sort = this.config?.sort?.[node?.parentNode?.uniqueName]?.find(x => x.uniqueName == node.uniqueName);
|
||||
if (sort) {
|
||||
return {
|
||||
columnName: node.columnName,
|
||||
|
||||
Reference in New Issue
Block a user