Vizzuality/landgriffon

View on GitHub
client/src/store/index.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function querySyncMiddleware has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const querySyncMiddleware: Middleware = () => (next) => (action) => {
  const { query, isReady } = router;
  if (!isReady) return next(action);

  Object.entries(QUERY_PARAMS_MAP).forEach(async ([param, queryState]) => {
Severity: Minor
Found in client/src/store/index.ts - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

      return param;
    Severity: Major
    Found in client/src/store/index.ts - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status