rename a variable

This commit is contained in:
rhiannon morris 2024-07-07 20:45:02 +02:00
parent b2e2db77dd
commit 762300dcaf

View file

@ -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>) {