mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Cache statistics more reliably. Fixes #2357
This commit is contained in:
parent
12fa023c6d
commit
a4d86d24e6
@ -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 = '';
|
||||
|
Loading…
Reference in New Issue
Block a user