소스 검색

fix(AdvancedTable): history.replaceState would throw console warning

Kristian Vos 3 년 전
부모
커밋
c512214761
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      frontend/src/components/AdvancedTable.vue

+ 5 - 1
frontend/src/components/AdvancedTable.vue

@@ -1904,7 +1904,11 @@ export default {
 				.map(key => `${key}=${queryObject[key]}`)
 				.join("&")}`;
 
-			window.history.replaceState(null, null, queryString);
+			window.history.replaceState(
+				window.history.state,
+				null,
+				queryString
+			);
 		},
 		setLocalStorage() {
 			localStorage.setItem(