All items filters selected by default, for now.

This commit is contained in:
Edward Betts 2021-08-05 08:32:06 +02:00
parent b825bb68cc
commit 6c46c3713a
1 changed files with 6 additions and 4 deletions

View File

@ -1342,9 +1342,10 @@ export default {
this.clear_isa();
this.isa_list = response.data.isa_count;
this.isa_list.forEach(isa => {
if (this.detail_qid || this.item_type_filters.length) {
this.isa_ticked.push(isa.qid);
/* if (this.detail_qid || this.item_type_filters.length) {
this.isa_ticked.push(isa.qid);
}
} */
this.isa_labels[isa.qid] = isa.label;
this.isa_lookup[isa.qid] = isa;
});
@ -1455,9 +1456,10 @@ export default {
if (this.isa_lookup[isa.qid] === undefined) {
this.isa_lookup[isa.qid] = isa;
this.isa_list.push(isa);
if (this.detail_qid || this.item_type_filters.length) {
this.isa_ticked.push(isa.qid);
/* if (this.detail_qid || this.item_type_filters.length) {
this.isa_ticked.push(isa.qid);
}
} */
} else {
this.isa_lookup[isa.qid].count += 1;
}