Skip to content

Commit 4fb5de5

Browse files
fix(interface): legend duplicates (#473)
1 parent 4549e73 commit 4fb5de5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

public/components/legend/legend.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class Legend {
1919
);
2020

2121
this.DOMElement = document.getElementById("legend");
22-
this.DOMElement.appendChild(fragment);
22+
this.DOMElement.replaceChildren(fragment);
2323
show && this.show();
2424
}
2525

public/components/views/settings/settings.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,5 +202,7 @@ export class Settings {
202202
for (const checkbox of this.dom.flagsCheckbox) {
203203
checkbox.checked = flags.has(checkbox.getAttribute("value"));
204204
}
205+
206+
this.dom.showFriendlyDependenciesCheckbox.checked = this.config.showFriendlyDependencies;
205207
}
206208
}

0 commit comments

Comments
 (0)