chore: update heatmap click handler

This commit is contained in:
Steven
2023-12-22 20:07:17 +08:00
parent 29b540ade3
commit feefaabce9
8 changed files with 25 additions and 64 deletions

View File

@ -48,16 +48,16 @@ const UserProfile = () => {
}, [params.username]);
useEffect(() => {
memoList.reset();
fetchMemos();
}, [tagQuery, textQuery]);
const fetchMemos = async () => {
if (!user) {
return;
}
const filters = [`creator == "${user.name}"`, `row_status == "NORMAL"`];
memoList.reset();
fetchMemos();
}, [user, tagQuery, textQuery]);
const fetchMemos = async () => {
const filters = [`creator == "${user!.name}"`, `row_status == "NORMAL"`, `order_by_pinned == true`];
const contentSearch: string[] = [];
if (tagQuery) {
contentSearch.push(`"#${tagQuery}"`);