We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40c832e commit bf291ddCopy full SHA for bf291dd
pdl-live-react/src/view/transcript/Block.tsx
@@ -101,9 +101,11 @@ export default function Block({ data }: Props): ReactNode {
101
}))
102
.with({ kind: "text" }, (data) => ({
103
C: ["pdl_text"],
104
- S: !Array.isArray(data.text)
105
- ? undefined
106
- : data.text.map((b, idx) => <Block key={idx} data={b} />),
+ S: !Array.isArray(data.text) ? (
+ <Block data={data.text} />
+ ) : (
107
+ data.text.map((b, idx) => <Block key={idx} data={b} />)
108
+ ),
109
110
.with({ kind: "lastOf" }, (data) => ({
111
C: ["pdl_lastOf"],
0 commit comments