Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: tags index page sort by popular

shuai17bb4f28504d
diff --git a/ui/src/pages/Tags/index.tsx b/ui/src/pages/Tags/index.tsx
index d20b4b0b..b8779364 100644
--- a/ui/src/pages/Tags/index.tsx
+++ b/ui/src/pages/Tags/index.tsx
@@ -27,7 +27,7 @@ const Tags = () => {
const { role_id } = loggedUserInfoStore((_) => _.user);
const page = Number(urlSearch.get('page')) || 1;
- const sort = urlSearch.get('sort');
+ const sort = urlSearch.get('sort') || sortBtns[0];
const pageSize = 20;
const {