Commit e232b32e by Van

fix conditions count bis

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