Ver código fonte

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

Kristian Vos 2 anos atrás
pai
commit
c512214761
1 arquivos alterados com 5 adições e 1 exclusões
  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(