Compare also the record rows to reconstruct tree view
As the row keeps a link to the record, the records of the group could have been replaced by new records with exactly the same length.
This commit is contained in:
1 parent
61a891d103
commit
81adc7d0db
1 file changed
+4
-1
+4
-1
@@ -266,7 +266,10 @@
|
||||
}
|
||||
expanded = expanded || [];
|
||||
|
||||
if (this.screen.group.length != this.rows.length) {
|
||||
if ((this.screen.group.length != this.rows.length) ||
|
||||
!Sao.common.compare(this.screen.group, this.rows.map(function(row) {
|
||||
return row.record;
|
||||
}))) {
|
||||
this.construct(selected, expanded);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user