Browse Source

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

version-14
Rushabh Mehta 3 years ago
parent
commit
5fd693d50e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/public/js/frappe/list/base_list.js

+ 1
- 1
frappe/public/js/frappe/list/base_list.js View File

@@ -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;


Loading…
Cancel
Save