Skip to content
Snippets Groups Projects
Commit 46ce75bf authored by Christopher Willis-Ford's avatar Christopher Willis-Ford
Browse files

Prevent crash when opening tutorials library

parent 2c285fee
Branches
Tags
No related merge requests found
......@@ -193,7 +193,7 @@ class LibraryComponent extends React.Component {
>
{this.getFilteredData().map((dataItem, index) => {
const iconSource = {};
if (dataItem.rawURL) {
if (dataItem.hasOwnProperty('rawURL')) {
iconSource.uri = dataItem.rawURL;
} else {
// TODO: adjust libraries to be more storage-friendly; don't use split() here.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment