frontend/src/store/ui/browserPaths/reducer.js
Showing 1 of 1 total issue
Function browserPaths
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function browserPaths(state = initialBrowserPathsState, action) { switch (action.type) { case agaveFileSystemsTypes.GET_AGAVE_FILE_SYSTEMS_ASYNC.SUCCESS: { const keysFromAction = action.systems.reduce((acc, cv) => { acc[`${cv.provider}.${cv.id}`] = ['', cv.provider, cv.id, ''].join('/');