We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4499cf commit 9afdcaaCopy full SHA for 9afdcaa
src/components/FilePreview.js
@@ -45,7 +45,7 @@ export default class FilePreview extends Component {
45
);
46
47
const nodeLink = onClick ? (
48
- <a onClick={onClick.bind(null, file.http_url)}>{node}</a>
+ <a onClick={() => onClick(file.relative_path)}>{node}</a>
49
) : (
50
<a href={file.http_url} target="_blank">
51
{node}
0 commit comments