mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-20 11:48: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:
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;
|
||||
|
@ -305,6 +305,10 @@ function(r, $, pgAdmin, _, Backbone) {
|
||||
grid = $(container).data('grid');
|
||||
filter = $(container).data('filter');
|
||||
|
||||
if(_.isUndefined(data)){
|
||||
return null;
|
||||
}
|
||||
|
||||
data.fetch({
|
||||
reset: true,
|
||||
success: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user