From ddad57bc46a8a2b494f16a555874772dbf1401e6 Mon Sep 17 00:00:00 2001 From: Meekdai Date: Tue, 2 Apr 2024 17:52:37 +0800 Subject: [PATCH] Update tag.html --- templates/tag.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/tag.html b/templates/tag.html index 9c59461..4acf1f0 100644 --- a/templates/tag.html +++ b/templates/tag.html @@ -91,7 +91,7 @@ function showList(){ tagLable.appendChild(showLabels); } for(i in jsonData){ - for(label in jsonData[i]['labels']){ + for(label of jsonData[i]['labels']){ if(!(tagList.includes(label))){ tagList.push(label); let showLabels=document.createElement("button"); @@ -129,7 +129,7 @@ function showList(){ let listLabels=document.createElement("div"); listLabels.setAttribute("class","listLabels"); - for(label in jsonData[i]['labels']){ + for(label of jsonData[i]['labels']){ let LabelName=document.createElement("span"); LabelName.setAttribute("class","Label LabelName"); LabelName.setAttribute("style","background-color:"+jsonData['labelColorDict'][label]);