Explorar el Código

fix(minor): throttle listview refresh on same args for 3 seconds

version-14
Rushabh Mehta hace 3 años
padre
commit
5fd693d50e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      frappe/public/js/frappe/list/base_list.js

+ 1
- 1
frappe/public/js/frappe/list/base_list.js Ver fichero

@@ -488,7 +488,7 @@ frappe.views.BaseList = class BaseList {
}

no_change(args) {
// returns true if arguments are same for the last 5 seconds
// returns true if arguments are same for the last 3 seconds
// this helps in throttling if called from various sources
if (this.last_args && JSON.stringify(args) === this.last_args) {
return true;


Cargando…
Cancelar
Guardar