fix: Include only appreciation and criticism logs for review pills

This commit is contained in:
Suraj Shetty 2019-04-05 19:42:16 +05:30
parent 7e8fc8f69e
commit e8cd9dc4c6

View file

@ -140,7 +140,7 @@ frappe.ui.form.Review = class Review {
}
update_reviewers() {
const review_logs = this.frm.get_docinfo().energy_point_logs
.filter(log => log.type !== 'Auto');
.filter(log => ['Appreciation', 'Criticism'].includes(log.type));
this.review_list_wrapper.find('.review-pill').remove();
review_logs.forEach(log => {