diff --git a/web/src/index.js b/web/src/index.js index a4df913..6187d0a 100644 --- a/web/src/index.js +++ b/web/src/index.js @@ -37,7 +37,10 @@ ReactDOM.render( /> } /> gAppRef.runSpecialSearch( "/search/author/"+gAppRef.props.match.params.authorId, null, - () => gAppRef.setWindowTitle( gAppRef.caches.authors[ gAppRef.props.match.params.authorId ].author_name ) + () => { + const author = gAppRef.caches.authors[ gAppRef.props.match.params.authorId ] ; + gAppRef.setWindowTitle( author ? author.author_name : "Unknown author" ) + } ) } /> } />