Skip to content

Commit

Permalink
fix: xlog summary, closes #24
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Jun 2, 2024
1 parent 8209bb0 commit 3a7e297
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/modules/xlog/XLogSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 23,7 @@ export const XLogSummary: FC<XLogSummaryProps> = (props) => {
},
}).then((res) => res.json())
if (!data) throw new Error('请求错误')
if (!data.data) throw new Error('内容暂时无法获取')
if (!data.summary) throw new Error('内容暂时无法获取')
return data
},
enabled: !!cid,
Expand Down Expand Up @@ -52,7 52,7 @@ export const XLogSummary: FC<XLogSummaryProps> = (props) => {
<span className="block h-5 w-full animate-pulse rounded-xl bg-zinc-200 dark:bg-neutral-800" />
</div>
) : (
data?.data
data?.summary
)}
</div>
{isLoading && (
Expand Down

0 comments on commit 3a7e297

Please sign in to comment.