Skip to content

Commit 4ce8b02

Browse files
committed
Fix type error in Markdown component
1 parent de646f4 commit 4ce8b02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/emera-module/Markdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const Markdown = ({ children, ref, as: Component = 'div', ...props }: { c
1414
ctx.plugin.app,
1515
children,
1616
containerRef.current,
17-
ctx.file.path,
17+
ctx.file?.path ?? '',
1818
ctx.plugin,
1919
);
2020
}, []);

0 commit comments

Comments
 (0)