Explorar el Código

fix: helper functions

Muhammad Iqbal Afandi hace 3 años
padre
commit
6274ef6b10
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      resources/js/utils/helpers.js

+ 1
- 1
resources/js/utils/helpers.js Ver fichero

@@ -27,7 +27,7 @@ export function removeParams(...params) {
27 27
 
28 28
   params.forEach((value) => urlParams.delete(value))
29 29
 
30
-  window.history.replaceState({}, '', `${location.pathname}?${urlParams}`)
30
+  history.replaceState({}, '', `${location.pathname}?${urlParams}`)
31 31
 }
32 32
 
33 33
 export class FormValidationError extends Error {