rename a variable
This commit is contained in:
parent
b2e2db77dd
commit
762300dcaf
1 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@ function updateItems() {
|
|||
const anyReq = reqTags.size > 0;
|
||||
|
||||
for (const [year, items] of itemsByYear) {
|
||||
let hide = true;
|
||||
let hideMarker = true;
|
||||
|
||||
for (const item of items) {
|
||||
const req = tags.get(item)?.some(x => reqTags.has(x)) ?? false;
|
||||
|
@ -30,11 +30,11 @@ function updateItems() {
|
|||
const hidden = exc || (anyReq && !req);
|
||||
|
||||
item.hidden = hidden;
|
||||
hide &&= hidden;
|
||||
hideMarker &&= hidden;
|
||||
}
|
||||
|
||||
const marker = document.getElementById(`marker-${year}`);
|
||||
if (marker !== null) marker.hidden = hide;
|
||||
if (marker !== null) marker.hidden = hideMarker;
|
||||
}
|
||||
|
||||
function disp(pfx: string, tags: Iterable<string>) {
|
||||
|
|
Loading…
Reference in a new issue