Skip to content

Commit 2a22648

Browse files
committed
fix(api): Run getRepositoryFile() through API, not raw.githubcontents
1 parent d162064 commit 2a22648

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/repository/screens/repository-file.screen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class RepositoryFile extends Component {
101101
const fileType = content.name.split('.').pop();
102102

103103
if (!this.isImage(fileType)) {
104-
this.props.getRepositoryFile(content.download_url);
104+
this.props.getRepositoryFile(content.url);
105105
} else {
106106
this.setImageSize(content.download_url);
107107
}

0 commit comments

Comments
 (0)