Skip to content

Commit

Permalink
Update tag.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Meekdai committed Apr 2, 2024
1 parent 668435a commit 2866af5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion templates/tag.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,16 @@
tagLable.appendChild(showLabels);
}

for(label in jsonData['labelColorDict']){
let labelsSet = new Set();
for(let key in jsonData) {
if (key !== 'labelColorDict' && Array.isArray(jsonData[key]['labels'])) {
for (let label of jsonData[key]['labels']) {
labelsSet.add(label);
}
}
}
let labelsList = Array.from(labelsSet);
for(label in labelsList){
tagList.push(label);
let showLabels=document.createElement("button");
showLabels.setAttribute("class","Label");
Expand Down

0 comments on commit 2866af5

Please sign in to comment.