Commit aeda2e0a by Van

undefined without quotes

parent e232b32e
...@@ -135,7 +135,7 @@ class CustomQueries { ...@@ -135,7 +135,7 @@ class CustomQueries {
console.log(this.json['count']); console.log(this.json['count']);
console.log(this.json['count'][contentType]); console.log(this.json['count'][contentType]);
let count = (this.json['count'] !== 'undefined' && this.json['count'][contentType] !== 'undefined') ? this.json['count'][contentType] : 0; let count = (this.json['count'] !== undefined && this.json['count'][contentType] !== undefined) ? this.json['count'][contentType] : 0;
let checked = ""; let checked = "";
if (jQuery.inArray(contentType, this.json['all']) !== -1) { if (jQuery.inArray(contentType, this.json['all']) !== -1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment