ソースを参照

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

version-14
Rushabh Mehta 3年前
コミット
5fd693d50e
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      frappe/public/js/frappe/list/base_list.js

+ 1
- 1
frappe/public/js/frappe/list/base_list.js ファイルの表示

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


no_change(args) { 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 // this helps in throttling if called from various sources
if (this.last_args && JSON.stringify(args) === this.last_args) { if (this.last_args && JSON.stringify(args) === this.last_args) {
return true; return true;


読み込み中…
キャンセル
保存