Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.

Commit 35e8401

Browse files
fix error in folder chip when path is undefined (#1229)
1 parent 700ff3d commit 35e8401

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

client/src/components/MarkdownWithCode/LinkRenderer.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,11 @@ const LinkRenderer = ({
8888
return (
8989
<>
9090
{filePath.endsWith('/') ? (
91-
<FolderChip onClick={handleClickFolder} path={path} repoRef={repo} />
91+
<FolderChip
92+
onClick={handleClickFolder}
93+
path={path || filePath || ''}
94+
repoRef={repo}
95+
/>
9296
) : (
9397
<FileChip
9498
fileName={fileName || path || ''}

0 commit comments

Comments
 (0)