Browse Source

fixed issue with reducer sharing url query instance with angular router

Torkel Ödegaard 7 years ago
parent
commit
d7655e0b54
1 changed files with 3 additions and 1 deletions
  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 {
         url: renderUrl(path || state.path, query),
         path: path || state.path,
-        query: query,
+        query: {
+          ...query,
+        },
         routeParams: routeParams || state.routeParams,
       };
     }