Skip to content

Commit 3a7e297

Browse files
committed
fix: xlog summary, closes #24
Signed-off-by: Innei <[email protected]>
1 parent 8209bb0 commit 3a7e297

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/modules/xlog/XLogSummary.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const XLogSummary: FC<XLogSummaryProps> = (props) => {
2323
},
2424
}).then((res) => res.json())
2525
if (!data) throw new Error('请求错误')
26-
if (!data.data) throw new Error('内容暂时无法获取')
26+
if (!data.summary) throw new Error('内容暂时无法获取')
2727
return data
2828
},
2929
enabled: !!cid,
@@ -52,7 +52,7 @@ export const XLogSummary: FC<XLogSummaryProps> = (props) => {
5252
<span className="block h-5 w-full animate-pulse rounded-xl bg-zinc-200 dark:bg-neutral-800" />
5353
</div>
5454
) : (
55-
data?.data
55+
data?.summary
5656
)}
5757
</div>
5858
{isLoading && (

0 commit comments

Comments
 (0)