File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
handlereg.web.frontend/src/main/frontend/src Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { createListenerMiddleware } from '@reduxjs/toolkit' ;
2
2
import { isAnyOf } from '@reduxjs/toolkit' ;
3
3
import { api } from './api' ;
4
- import { LOCATION_CHANGE } from 'redux-first-history' ;
5
- import { VIS_KVITTERING , BUTIKKNAVN_ENDRE } from './actiontypes' ;
4
+ import { VIS_KVITTERING , BUTIKKNAVN_ENDRE , LOCATION_CHANGE } from './actiontypes' ;
6
5
7
6
const listenerMiddleware = createListenerMiddleware ( ) ;
8
7
@@ -52,7 +51,7 @@ listenerMiddleware.startListening({
52
51
const basename = listenerApi . getState ( ) . basename ;
53
52
const newLocation = action . payload . location . pathname ;
54
53
if ( basename + '/nybutikk' === newLocation ) {
55
- listenerApi . dispatch ( BUTIKKNAVN_ENDRE ( '' ) ) ; // Blank receit display when navigating in the app
54
+ listenerApi . dispatch ( BUTIKKNAVN_ENDRE ( '' ) ) ; // Blank store name form when navigating into new store component
56
55
}
57
56
}
58
57
} )
You can’t perform that action at this time.
0 commit comments