From 0e15a50196a21b15a40b6c17cab57ea21682fca8 Mon Sep 17 00:00:00 2001 From: iamqiz Date: Sat, 27 Apr 2024 17:02:15 +0800 Subject: [PATCH] =?UTF-8?q?fix=E9=9B=86=E5=B8=82=E8=AE=A1=E6=95=B0?= =?UTF-8?q?=E9=94=99=E8=AF=AF=20(#11163)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/config/bazaar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/config/bazaar.ts b/app/src/config/bazaar.ts index d97668ebd..63b4c9a12 100644 --- a/app/src/config/bazaar.ts +++ b/app/src/config/bazaar.ts @@ -386,7 +386,7 @@ export const bazaar = { if (["icons", "themes"].includes(bazaarType)) { showSwitch = true; } - const counterElement = contentElement.parentElement.querySelector(".counter"); + const counterElement = contentElement.previousElementSibling.querySelector(".counter"); if (response.data.packages.length === 0) { counterElement.classList.add("fn__none"); } else {