Skip to content

Commit 5571a74

Browse files
WEB-113 - Safe check invalid gitlink
1 parent 59a5bf7 commit 5571a74

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/components/EditButton.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class EditDoc extends Component {
2020
const classes = className ? `${className}` : '';
2121
const { pathRoute } = this.state;
2222
return (
23+
pathRoute &&
2324
<a className={classes} href={`https://github.com/testsigmahq/testsigma-tutorials/blob/dev/src/pages${pathRoute}.md`} target="_blank" rel="noopener noreferrer nofollow">
2425
<i>
2526
<svg className="button-icon--left" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">

0 commit comments

Comments
 (0)