golfing it down while i'm in here
@@ -729,8 +729,7 @@ export default class ScholarReader extends React.PureComponent<Props, State> {
}
loadDataFromApi = async (): Promise<void> => {
- if (this.props.paperId !== undefined) {
- if (this.props.paperId.type === "arxiv") {
+ if (this.props.paperId !== undefined && this.props.paperId.type === "arxiv") {
this.setState({
areCitationsLoading: true
});
@@ -772,7 +771,6 @@ export default class ScholarReader extends React.PureComponent<Props, State> {
}
}
}
- }
jumpToEntityWithBackMessage = (id: string): void => {
const success = this.jumpToEntity(id);
