src/scenes/BiochemicalEntityDetails/LoadContent.js
Function componentDidMount
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
componentDidMount() {
if (this.cancelTokenSource) {
this.cancelTokenSource.cancel();
}
this.cancelTokenSource = axios.CancelToken.source();
Function fetchResults
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fetchResults() {
this.setState({ results: this.props.name });
const url = this.props["url"];
if (this.cancelTokenSource) {