mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-13 16:41:59 -05:00
When any of the docked tab(statistics, dependents & dependencies)
are clicked without selecting any tree node. it gives error in browser console panel. Because the node passed is undefined. and check is missing. This is now fixed by adding check for node passed.
This commit is contained in:
1 parent
47dccec915
commit
a871b15fe9
2 files changed
+9
No files matched your search
@@ -236,6 +236,9 @@ define(
|
||||
* through. We will wait for some time before fetching the Dependents
|
||||
**/
|
||||
var self = this;
|
||||
if (!node) {
|
||||
return;
|
||||
}
|
||||
self.dependent = true;
|
||||
if (self.timeout) {
|
||||
clearTimeout(self.timeout);
|
||||
@@ -275,6 +278,9 @@ define(
|
||||
* through. We will wait for some time before fetching the Dependencies
|
||||
**/
|
||||
var self = this;
|
||||
if (!node) {
|
||||
return;
|
||||
}
|
||||
self.dependent = false;
|
||||
if (self.timeout) {
|
||||
clearTimeout(self.timeout);
|
||||
|
||||
Reference in new issue
Block a user