From ec47a2aa66d79c1c0bd01a10234f02c4b3b15a92 Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Fri, 9 Sep 2022 11:42:32 +0530 Subject: [PATCH] Added a fix to the context menu and panel issue introduced by the SonarQube fixes. --- web/pgadmin/browser/static/js/frame.js | 2 +- web/pgadmin/browser/static/js/node.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/pgadmin/browser/static/js/frame.js b/web/pgadmin/browser/static/js/frame.js index 39b1d6512..73e952eee 100644 --- a/web/pgadmin/browser/static/js/frame.js +++ b/web/pgadmin/browser/static/js/frame.js @@ -49,7 +49,7 @@ define([ $(myPanel).data('pgAdminName', that.name); myPanel.initSize(that.width, that.height); - if (!myPanel.showTitle) + if (!(myPanel.showTitle??true)) myPanel.title(false); myPanel.icon(that.icon); diff --git a/web/pgadmin/browser/static/js/node.js b/web/pgadmin/browser/static/js/node.js index 854432fae..9b6635b92 100644 --- a/web/pgadmin/browser/static/js/node.js +++ b/web/pgadmin/browser/static/js/node.js @@ -64,7 +64,7 @@ define('pgadmin.browser.node', [ child.callbacks = _.extend({}, parent.callbacks, props.callbacks); // Let's not bind the callbacks, or initialize the child. - if (!initialize) + if (!(initialize??true)) return child; var bindToChild = function(cb) {