Ver código fonte

fixed issue with reducer sharing url query instance with angular router

Torkel Ödegaard 7 anos atrás
pai
commit
d7655e0b54
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      public/app/core/reducers/location.ts

+ 3 - 1
public/app/core/reducers/location.ts

@@ -23,7 +23,9 @@ export const locationReducer = (state = initialState, action: Action): LocationS
       return {
       return {
         url: renderUrl(path || state.path, query),
         url: renderUrl(path || state.path, query),
         path: path || state.path,
         path: path || state.path,
-        query: query,
+        query: {
+          ...query,
+        },
         routeParams: routeParams || state.routeParams,
         routeParams: routeParams || state.routeParams,
       };
       };
     }
     }