[Domain] Existing expression will expression will always result into false

pull/29/head
Ashesh Vashi 2020-04-08 12:54:37 +05:30
parent 068b812245
commit a6c03a6b75
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ define('pgadmin.node.domain', [
var ConstraintModel = pgBrowser.Node.Model.extend({
idAttribute: 'conoid',
initialize: function(attrs) {
if (!_.size(attrs) === 0) {
if (_.size(attrs) !== 0) {
this.convalidated_default = this.get('convalidated');
}
pgBrowser.Node.Model.prototype.initialize.apply(this, arguments);