Skip to content

Commit a0ab52d

Browse files
denis-sokolovAeolun
authored andcommitted
fix: allow non-string rendered contents
1 parent 8bc70d3 commit a0ab52d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ class DiffViewer extends React.Component<
194194
const content = renderer
195195
? renderer(wordDiff.value as string)
196196
: wordDiff.value;
197-
if (typeof content !== "string") return;
198197

199198
return wordDiff.type === DiffType.ADDED ? (
200199
<ins

0 commit comments

Comments
 (0)