Added a fix to the context menu and panel issue introduced by the SonarQube fixes.

This commit is contained in:
Akshay Joshi 2022-09-09 11:42:32 +05:30
parent b73aa6d000
commit ec47a2aa66
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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) {