Skip to content

Commit b465230

Browse files
committed
fix: summary render
Signed-off-by: Innei <[email protected]>
1 parent cf3c7eb commit b465230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/modules/shared/SummarySwitcher.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const SummarySwitcher: FC<
2020
const cid = getCidForBaseModel(data)
2121

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

2626
if (!enabled) return null

0 commit comments

Comments
 (0)