mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed SonarQube issues.
This commit is contained in:
committed by
Akshay Joshi
parent
ad862f4084
commit
af6ff20020
@@ -34,7 +34,7 @@ export class DefaultWithSchema extends BaseUISchema {
|
||||
id: 'evnt_truncate', label: gettext('TRUNCATE'),
|
||||
type: 'switch', group: gettext('With'),
|
||||
visible: function() {
|
||||
if(!_.isUndefined(this.node_info['node_info']) && !_.isUndefined(this.node_info['node_info'])
|
||||
if(!_.isUndefined(this.node_info['node_info'])
|
||||
&& !_.isUndefined(this.node_info['node_info'].version) &&
|
||||
this.node_info['node_info'].version >= 110000)
|
||||
return true;
|
||||
@@ -45,7 +45,7 @@ export class DefaultWithSchema extends BaseUISchema {
|
||||
id: 'publish_via_partition_root', label: gettext('Publish via root?'),
|
||||
type: 'switch', group: gettext('With'),
|
||||
visible: function() {
|
||||
if(!_.isUndefined(this.node_info['node_info']) && !_.isUndefined(this.node_info['node_info'])
|
||||
if(!_.isUndefined(this.node_info['node_info'])
|
||||
&& !_.isUndefined(this.node_info['node_info'].version) &&
|
||||
this.node_info['node_info'].version >= 130000)
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user