File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ export function mapUrl(availableActions = {}, url = []) {
6
6
return notFound ;
7
7
}
8
8
/*eslint-disable */
9
- const reducer = ( next , current ) => {
10
- if ( next . action && next . action [ current ] ) {
11
- return { action : next . action [ current ] , params : [ ] } ; // go deeper
9
+ const reducer = ( prev , current ) => {
10
+ if ( prev . action && prev . action [ current ] ) {
11
+ return { action : prev . action [ current ] , params : [ ] } ; // go deeper
12
12
} else {
13
- if ( typeof next . action === 'function' ) {
14
- return { action : next . action , params : next . params . concat ( current ) } ; // params are found
13
+ if ( typeof prev . action === 'function' ) {
14
+ return { action : prev . action , params : prev . params . concat ( current ) } ; // params are found
15
15
} else {
16
16
return notFound ;
17
17
}
You can’t perform that action at this time.
0 commit comments