Skip to content

Commit 4af496e

Browse files
committed
Use empty object when props is not available in CodeFence
1 parent 1d7e057 commit 4af496e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/atoms/markdown/CodeFence.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const CodeFenceCopyButton = styled.button`
3737
}
3838
`
3939

40-
const CodeFence = (props: React.HTMLProps<HTMLPreElement>) => {
40+
const CodeFence = (props: React.HTMLProps<HTMLPreElement> = {}) => {
4141
if (props.className != null && props.className!.includes('CodeMirror')) {
4242
const otherProps = { ...props }
4343
const rawContent = props['data-raw']

0 commit comments

Comments
 (0)