Skip to content

Commit

Permalink
fix: in react ui, text blocks with literal content are not show in Tr…
Browse files Browse the repository at this point in the history
…anscript

Signed-off-by: Nick Mitchell <[email protected]>
  • Loading branch information
starpit committed Feb 10, 2025
1 parent d1df52d commit fddff64
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pdl-live-react/src/view/transcript/Block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@ export default function Block({ data }: Props): ReactNode {
}))
.with({ kind: "text" }, (data) => ({
C: ["pdl_text"],
S: !Array.isArray(data.text)
? undefined
: data.text.map((b, idx) => <Block key={idx} data={b} />),
S: !Array.isArray(data.text) ? (
<Block data={data.text} />
) : (
data.text.map((b, idx) => <Block key={idx} data={b} />)
),
}))
.with({ kind: "lastOf" }, (data) => ({
C: ["pdl_lastOf"],
Expand Down

0 comments on commit fddff64

Please sign in to comment.