mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-04 12:36:44 -05:00
Cache statistics more reliably. Fixes #2357
This commit is contained in:
1 parent
12fa023c6d
commit
a4d86d24e6
1 file changed
+6
-2
@@ -187,11 +187,15 @@ define([
|
||||
|
||||
// Avoid unnecessary reloads
|
||||
var treeHierarchy = node.getTreeNodeHierarchy(item);
|
||||
if (_.isEqual($(panel[0]).data('node-prop'), treeHierarchy)) {
|
||||
var cache_flag = {
|
||||
node_type: node_type,
|
||||
url: url
|
||||
};
|
||||
if (_.isEqual($(panel[0]).data('node-prop'), cache_flag)) {
|
||||
return;
|
||||
}
|
||||
// Cache the current IDs for next time
|
||||
$(panel[0]).data('node-prop', treeHierarchy);
|
||||
$(panel[0]).data('node-prop', cache_flag);
|
||||
|
||||
if (node.hasStatistics) {
|
||||
msg = '';
|
||||
|
||||
Reference in new issue
Block a user