Hi,

Fixed a minor bug related to update the tree in the node.js.
Due to this bug,  After updating the Node, if the response data is null
then it gives an error.

Please find the attached patch for the same.

Thanks,
Khushboo
diff --git a/web/pgadmin/browser/templates/browser/js/node.js b/web/pgadmin/browser/templates/browser/js/node.js
index 23d559c..15d4c61 100644
--- a/web/pgadmin/browser/templates/browser/js/node.js
+++ b/web/pgadmin/browser/templates/browser/js/node.js
@@ -918,7 +918,7 @@ function($, _, S, pgAdmin, Menu, Backbone, Alertify, pgBrowser, Backform) {
           } else if (view.model.get('name')) {
             tree.setLabel(item, {label: view.model.get("name")});
             if (
-              view.model.get('data').icon && view.model.get('data').icon != ''
+              view.model.get('data') && view.model.get('data').icon && view.model.get('data').icon != ''
             )
               tree.addIcon(item, {icon: view.model.get('data').icon});
           }
-- 
Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers

Reply via email to