mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Handle the executor nodes, which are unknown to the Explain module,
gracefully by showing the 'ex_unknown.png' for such nodes. Reported by: Murtuza Refs #2706
This commit is contained in:
parent
788f7f3a69
commit
55e14e4d78
@ -260,12 +260,14 @@ var PlanModel = Backbone.Model.extend({
|
|||||||
node_type = node_type.substring(0,7);
|
node_type = node_type.substring(0,7);
|
||||||
|
|
||||||
// Get the image information for current node
|
// Get the image information for current node
|
||||||
var mapperObj = (_.isFunction(imageMapper[node_type]) &&
|
var mappedImage = (_.isFunction(imageMapper[node_type]) &&
|
||||||
imageMapper[node_type].apply(undefined, [data])) ||
|
imageMapper[node_type].apply(undefined, [data])) ||
|
||||||
imageMapper[node_type] || 'Undefined';
|
imageMapper[node_type] || {
|
||||||
|
"image": "ex_unknown.png", "image_text": node_type
|
||||||
|
};
|
||||||
|
|
||||||
data["image"] = mapperObj["image"];
|
data["image"] = mappedImage["image"];
|
||||||
data["image_text"] = mapperObj["image_text"];
|
data["image_text"] = mappedImage["image_text"];
|
||||||
|
|
||||||
// Start calculating xpos, ypos, width and height for child plans if any
|
// Start calculating xpos, ypos, width and height for child plans if any
|
||||||
if ('Plans' in data) {
|
if ('Plans' in data) {
|
||||||
|
Loading…
Reference in New Issue
Block a user