Commit e232b32e by Van

fix conditions count bis

parent 0efae0de
...@@ -133,10 +133,9 @@ class CustomQueries { ...@@ -133,10 +133,9 @@ class CustomQueries {
if (!this.usedContentType[contentType] && contentType) { if (!this.usedContentType[contentType] && contentType) {
this.usedContentType[contentType] = []; this.usedContentType[contentType] = [];
let count = 0; console.log(this.json['count']);
if (this.json['count'][contentType]) { console.log(this.json['count'][contentType]);
count = this.json['count'][contentType]; 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