mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Do not rely on the individual model (instead use the first level 'top'
model) to fetch the node_info, because - when loading the data in the collection, it may not initialize all the parameters.
This commit is contained in:
parent
62bd1a21cc
commit
40ceabb082
@ -79,8 +79,8 @@
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return !(
|
return !(
|
||||||
this.node_info &&
|
this.top && this.top.node_info &&
|
||||||
this.node_info.server.user.name == column.get('grantor')
|
this.top.node_info.server.user.name == column.get('grantor')
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
transform: function(data) {
|
transform: function(data) {
|
||||||
@ -141,7 +141,7 @@
|
|||||||
res = opts.apply(this),
|
res = opts.apply(this),
|
||||||
selected = {},
|
selected = {},
|
||||||
cid = self.model.cid,
|
cid = self.model.cid,
|
||||||
curr_user = self.model.node_info.server.user.name;
|
curr_user = self.model.top.node_info.server.user.name;
|
||||||
|
|
||||||
var idx = 0;
|
var idx = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user