mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-10 08:04:36 -06:00
Fix validation issue causing statistics tab to break if no node is selected on browser tree and user clicks on statistics tab.
This commit is contained in:
parent
a871b15fe9
commit
47007076cc
@ -229,15 +229,17 @@ function(_, $, pgBrowser, Backgrid) {
|
||||
* We will wait for some time before fetching the statistics for the
|
||||
* selected node.
|
||||
**/
|
||||
if (self.timeout) {
|
||||
clearTimeout(self.timeout);
|
||||
}
|
||||
self.timeout = setTimeout(
|
||||
function() {
|
||||
self.__updateCollection.call(
|
||||
self, node.generate_url(item, 'stats', data, true), node
|
||||
);
|
||||
}, 400);
|
||||
if (node) {
|
||||
if (self.timeout) {
|
||||
clearTimeout(self.timeout);
|
||||
}
|
||||
self.timeout = setTimeout(
|
||||
function() {
|
||||
self.__updateCollection.call(
|
||||
self, node.generate_url(item, 'stats', data, true), node
|
||||
);
|
||||
}, 400);
|
||||
}
|
||||
},
|
||||
|
||||
__createMultiLineStatistics: function(data) {
|
||||
|
Loading…
Reference in New Issue
Block a user