Skip to content

Commit

Permalink
fix(interface): legend duplicates (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreDemailly authored Feb 21, 2025
1 parent 4549e73 commit 4fb5de5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion public/components/legend/legend.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class Legend {
);

this.DOMElement = document.getElementById("legend");
this.DOMElement.appendChild(fragment);
this.DOMElement.replaceChildren(fragment);
show && this.show();
}

Expand Down
2 changes: 2 additions & 0 deletions public/components/views/settings/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,5 +202,7 @@ export class Settings {
for (const checkbox of this.dom.flagsCheckbox) {
checkbox.checked = flags.has(checkbox.getAttribute("value"));
}

this.dom.showFriendlyDependenciesCheckbox.checked = this.config.showFriendlyDependencies;
}
}

0 comments on commit 4fb5de5

Please sign in to comment.