Merge pull request #24745 from ankush/no_team_updates

fix(HR): hide "more" button from team updates
This commit is contained in:
Deepesh Garg 2021-03-02 18:55:34 +05:30 committed by GitHub
commit 82c6223196
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ frappe.team_updates = {
start: me.start
},
callback: function(r) {
if(r.message) {
if (r.message && r.message.length > 0) {
r.message.forEach(function(d) {
me.add_row(d);
});
@ -75,6 +75,6 @@ frappe.team_updates = {
}
me.last_feed_date = date;
$(frappe.render_template('team_update_row', data)).appendTo(me.body)
$(frappe.render_template('team_update_row', data)).appendTo(me.body);
}
}
}