File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " xlog " : patch
3
+ ---
4
+
5
+ fix: Fixed a bug where the article list could not be displayed.
Original file line number Diff line number Diff line change 1
1
import { useEffect , useMemo } from "react" ;
2
2
3
3
import { useCharacterId } from "@/hooks/use-character-id" ;
4
+ import type { GetFeedParams } from "@/queries/home" ;
4
5
import { useGetFeed } from "@/queries/home" ;
5
6
import { useGetPagesBySiteLite } from "@/queries/page" ;
6
7
import { debounce } from "@/utils/debounce" ;
@@ -33,10 +34,10 @@ export const useFeedData = (props: Props) => {
33
34
visibility,
34
35
limit,
35
36
characterId : characterId ?? _characterId ,
36
- daysInterval,
37
- searchKeyword,
38
- tags,
39
- } ) , [
37
+ daysInterval : daysInterval ?? null ,
38
+ searchKeyword : searchKeyword ?? null ,
39
+ tags : tags ?? [ ] ,
40
+ } as GetFeedParams ) , [
40
41
type ,
41
42
handle ,
42
43
visibility ,
@@ -47,7 +48,7 @@ export const useFeedData = (props: Props) => {
47
48
tags ,
48
49
] ) ;
49
50
50
- const feed = type === "shorts" && characterId
51
+ const feed = type === "shorts" && ! ! characterId
51
52
? useGetPagesBySiteLite ( { // Searching specific note by characterId
52
53
characterId,
53
54
visibility,
You can’t perform that action at this time.
0 commit comments