Skip to content

Commit 15668f3

Browse files
committed
use text content
1 parent eb7a266 commit 15668f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/ts/modals/edit-result-tags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function appendButtons(): void {
7676
const button = document.createElement("button");
7777
button.classList.add("toggleTag");
7878
button.setAttribute("data-tag-id", tagId);
79-
button.innerHTML = tag?.name ?? tag?._id ?? "unknown tag"; //this shouldnt happen?
79+
button.textContent = tag?.name ?? tag?._id ?? "unknown tag"; //this shouldnt happen?
8080
button.addEventListener("click", (e) => {
8181
toggleTag(tagId);
8282
updateActiveButtons();

0 commit comments

Comments
 (0)