File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed
containers/domain-autocomplete Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 2121
2222import { migrateRecentDomains } from './helpers' ;
2323
24- const reducer = state => ( {
25- ...state ,
26- visitedDomainList : migrateRecentDomains ( state . visitedDomainList ) ,
27- } ) ;
24+ const reducer = state =>
25+ state && {
26+ ...state ,
27+ visitedDomainList : migrateRecentDomains ( state . visitedDomainList ) ,
28+ } ;
2829
2930export default reducer ;
Original file line number Diff line number Diff line change @@ -92,9 +92,15 @@ const getStoreConfig = ({ router, state }) => {
9292 return ;
9393 }
9494
95+ const domainAutocomplete = domainAutocompleteReducer (
96+ state . domainAutocomplete
97+ ) ;
98+
9599 return {
96100 ...state ,
97- domainAutocomplete : domainAutocompleteReducer ( state . domainAutocomplete ) ,
101+ ...( domainAutocomplete && {
102+ domainAutocomplete,
103+ } ) ,
98104 } ;
99105 } ,
100106 storage : window . localStorage ,
You can’t perform that action at this time.
0 commit comments