Skip to content

Commit

Permalink
feat: add after_refresh hook to item dashboard (frappe#33372)
Browse files Browse the repository at this point in the history
* fix: return promise

* fix: use after_refresh hook instead of promise

# Because there is already a before_refresh hook. I think it makes sense to do the same for after.
  • Loading branch information
dj12djdjs authored Dec 29, 2022
1 parent e3a0ce5 commit 123920d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions erpnext/stock/dashboard/item_dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ erpnext.stock.ItemDashboard = class ItemDashboard {
args: args,
callback: function (r) {
me.render(r.message);
if(me.after_refresh) {
me.after_refresh();
}
}
});
}
Expand Down

0 comments on commit 123920d

Please sign in to comment.