Skip to content

Commit 9c08912

Browse files
committed
Only render properties if they are not null
1 parent d41f8fb commit 9c08912

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/block.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Code from "./components/code";
55
import { classNames, getTextContent } from "./utils";
66

77
export const renderChildText = (properties: DecorationType[]) => {
8-
return properties.map(([text, decorations], i) => {
8+
return properties?.map(([text, decorations], i) => {
99
if (!decorations) {
1010
return <React.Fragment key={i}>{text}</React.Fragment>;
1111
}

0 commit comments

Comments
 (0)