mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixes an issue rendering the dashboard, when data object is missing.
Also, fixed an issue checking the existence of the data object before accessing it in schema javascript module.
This commit is contained in:
committed by
Ashesh Vashi
parent
d202366a5d
commit
60208b7ae5
@@ -444,7 +444,7 @@ function($, _, S, pgAdmin, pgBrowser, Backform, alertify) {
|
||||
//Check if we are not child of catalog
|
||||
prev_i = t.hasParent(i) ? t.parent(i) : null;
|
||||
prev_d = prev_i ? t.itemData(prev_i) : null;
|
||||
if( prev_d._type == 'catalog') {
|
||||
if( prev_d && prev_d._type == 'catalog') {
|
||||
return false;
|
||||
}
|
||||
i = t.hasParent(i) ? t.parent(i) : null;
|
||||
|
||||
Reference in New Issue
Block a user