Commit 1173d518 by Van

fix conditions count bis bis bis

parent b5459140
......@@ -134,7 +134,7 @@ class CustomQueries {
if (!this.usedContentType[contentType] && contentType) {
this.usedContentType[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 = "";
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