Permalink
Browse files

fix(project): handle value type

  • Loading branch information...
jeremyvergnas committed Jul 27, 2016
1 parent 5a29cf4 commit 6c630652f7f1302155d74f7d33baa9bab33b03e9
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/filter.js
@@ -58,13 +58,13 @@ export class Filter extends CriteriaBuilder {
}

this.fieldElement.options = this.columns;
this.valueElement.type = this.columns[0].type || 'string'; // set the initial valueElement `type`

// Do we need to set pre-defined values for the filter?
if (Object.keys(this.criteria.where).length) {
if (this.criteria.where && Object.keys(this.criteria.where).length) {
return this.parseCriteria(this.criteria.where);
}

this.valueElement.type = this.columns[0].type || 'string'; // set the initial valueElement `type`
this.create();
}

0 comments on commit 6c63065

Please sign in to comment.