Commit 0efae0de by Van

fix conditions count

parent f6800325
......@@ -132,7 +132,12 @@ class CustomQueries {
createContentTypeBlock(contentType) {
if (!this.usedContentType[contentType] && contentType) {
this.usedContentType[contentType] = [];
let count = this.json['count'][contentType];
let count = 0;
if (this.json['count'][contentType]) {
count = this.json['count'][contentType];
}
let checked = "";
if (jQuery.inArray(contentType, this.json['all']) !== -1) {
checked = "checked";
......
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