packages/optimise-ui/src/redux/fetchHelper.js
Function apiHelper
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const apiHelper = (endpoint, options, blockError) => {
if (!options) {
options = {};
}
Avoid too many return
statements within this function. Open
Open
return json.data;