app/javascript/components/tree-view/reducers/index.js
Function reducers
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const reducers = (oncheck, onclick) => (state = {}, action) => {
const node = action.nodeId !== undefined ? Tree.nodeSelector(state, action.nodeId) : undefined;
switch (action.type) {
case ACTIONS.CHECKED_DIRECTLY:
- Create a ticketCreate a ticket