From 09c2241723f74d1cf366aa178c20ea3cdf7e0d1c Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Sun, 19 Apr 2020 11:45:54 +0300 Subject: [PATCH] Revert "Fixed #281 - Infinite loop on treetable" This reverts commit 965dffa968b2c42dc2c76db29223673926179c9f. --- src/components/treetable/TreeTable.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/components/treetable/TreeTable.vue b/src/components/treetable/TreeTable.vue index 6d34a84d2..473a6f851 100644 --- a/src/components/treetable/TreeTable.vue +++ b/src/components/treetable/TreeTable.vue @@ -505,6 +505,12 @@ export default { return (this.d_sortOrder * result); }); + for (let i = 0; i < _nodes.length; i++) { + if (_nodes[i].children && _nodes[i].children.length) { + _nodes[i].children = this.sortNodesSingle(_nodes[i].children); + } + } + return _nodes; }, sortMultiple(nodes) { @@ -516,6 +522,12 @@ export default { return this.multisortField(node1, node2, 0); }); + for (let i = 0; i < _nodes.length; i++) { + if (_nodes[i].children && _nodes[i].children.length) { + _nodes[i].children = this.sortNodesMultiple(_nodes[i].children); + } + } + return _nodes; }, multisortField(node1, node2, index) {