We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8209bb0 commit 3a7e297Copy full SHA for 3a7e297
src/components/modules/xlog/XLogSummary.tsx
@@ -23,7 +23,7 @@ export const XLogSummary: FC<XLogSummaryProps> = (props) => {
23
},
24
}).then((res) => res.json())
25
if (!data) throw new Error('请求错误')
26
- if (!data.data) throw new Error('内容暂时无法获取')
+ if (!data.summary) throw new Error('内容暂时无法获取')
27
return data
28
29
enabled: !!cid,
@@ -52,7 +52,7 @@ export const XLogSummary: FC<XLogSummaryProps> = (props) => {
52
<span className="block h-5 w-full animate-pulse rounded-xl bg-zinc-200 dark:bg-neutral-800" />
53
</div>
54
) : (
55
- data?.data
+ data?.summary
56
)}
57
58
{isLoading && (
0 commit comments