imaginerio/narratives

View on GitHub
src/providers/DrawProvider/index.js

Summary

Maintainability
A
2 hrs
Test Coverage
F
46%

Function onUpdate has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function onUpdate(e) {
    const { data, editType } = e;

    dispatch(['SET_FEATURES', data]);

Severity: Minor
Found in src/providers/DrawProvider/index.js - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

          return {
            ...state,
            slide: payload,
          };
    Severity: Major
    Found in src/providers/DrawProvider/index.js - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status