瀏覽代碼

fixed issue with reducer sharing url query instance with angular router

Torkel Ödegaard 7 年之前
父節點
當前提交
d7655e0b54
共有 1 個文件被更改,包括 3 次插入1 次删除
  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,
       };
     }