Skip to content

Commit

Permalink
fix error in folder chip when path is undefined (#1229)
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasiya1155 authored Feb 8, 2024
1 parent 700ff3d commit 35e8401
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/src/components/MarkdownWithCode/LinkRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ const LinkRenderer = ({
return (
<>
{filePath.endsWith('/') ? (
<FolderChip onClick={handleClickFolder} path={path} repoRef={repo} />
<FolderChip
onClick={handleClickFolder}
path={path || filePath || ''}
repoRef={repo}
/>
) : (
<FileChip
fileName={fileName || path || ''}
Expand Down

0 comments on commit 35e8401

Please sign in to comment.