From 6280f10b127004a66288d7ac237384142a0dc59f Mon Sep 17 00:00:00 2001 From: Meekdai Date: Tue, 21 Nov 2023 21:24:13 +0800 Subject: [PATCH] Update tag.html --- templates/tag.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/tag.html b/templates/tag.html index c1d7988..21024a0 100644 --- a/templates/tag.html +++ b/templates/tag.html @@ -86,7 +86,7 @@ function showList(jsonData){ let tagLable=document.getElementById("tagLable"); for(i in jsonData["postListJson"]){ - if(!(jsonData["postListJson"][i]['label'] in tagList)){ + if(!(tagList.includes(jsonData["postListJson"][i]['label']))){ tagList.push(jsonData["postListJson"][i]['label']); let showLabels=document.createElement("a"); showLabels.setAttribute("class","Label");