Skip to content

Commit

Permalink
fix: Summary (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderthieme authored Feb 11, 2022
1 parent 306daa9 commit 1d09f70
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/views/summary/summary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,17 @@ export class Summary {
</div>
</ia-accordion> : undefined
}
{
result.length > 1 ?
<ia-accordion
headline={result[1].resultCategory.description}
open={false}
>
<div slot="accordion-children">
<div innerHTML={DOMPurify.sanitize(result[1].result.text)} />
</div>
</ia-accordion> : undefined
}
{result.slice(1).map(r => (
<ia-accordion headline={r.resultCategory.description} open={true}>
<div slot="accordion-children">
Expand Down

0 comments on commit 1d09f70

Please sign in to comment.