Skip to content

Commit

Permalink
fix: summary condition
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Feb 12, 2024
1 parent 72ba9f0 commit c009425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/modules/shared/SummarySwitcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const SummarySwitcher: FC<
const cid = getCidForBaseModel(data)

const finalSummary = 'summary' in data ? data.summary : summary
if (typeof finalSummary != 'undefined' && finalSummary.trim().length)
if (finalSummary && finalSummary.trim().length)
return <ManualSummary className="my-4" summary={finalSummary} />

if (!enabled) return null
Expand Down

0 comments on commit c009425

Please sign in to comment.