KarrLab/datanator_frontend

View on GitHub
src/scenes/BiochemicalEntityDetails/LoadContent.js

Summary

Maintainability
A
2 hrs
Test Coverage
B
83%

Function componentDidMount has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  componentDidMount() {
    if (this.cancelTokenSource) {
      this.cancelTokenSource.cancel();
    }
    this.cancelTokenSource = axios.CancelToken.source();
Severity: Minor
Found in src/scenes/BiochemicalEntityDetails/LoadContent.js - About 1 hr to fix

    Function fetchResults has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      fetchResults() {
        this.setState({ results: this.props.name });
        const url = this.props["url"];
    
        if (this.cancelTokenSource) {
    Severity: Minor
    Found in src/scenes/BiochemicalEntityDetails/LoadContent.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status