dsi-icl/optimise

View on GitHub
packages/optimise-ui/src/redux/fetchHelper.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function apiHelper has 55 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const apiHelper = (endpoint, options, blockError) => {
    if (!options) {
        options = {};
    }

Severity: Major
Found in packages/optimise-ui/src/redux/fetchHelper.js - About 2 hrs to fix

    Avoid too many return statements within this function.
    Open

                            return json.data;
    Severity: Major
    Found in packages/optimise-ui/src/redux/fetchHelper.js - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status