pankod/refine

View on GitHub
packages/core/src/contexts/undoableQueue/index.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function undoableQueueReducer has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const undoableQueueReducer = (state: IUndoableQueue[], action: any) => {
  switch (action.type) {
    case ActionTypes.ADD: {
      const newState = state.filter((notificationItem: IUndoableQueue) => {
        return !(
Severity: Minor
Found in packages/core/src/contexts/undoableQueue/index.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status