fix(HR): hide "more" button from team updates

This commit is contained in:
Ankush Menat 2021-02-25 17:48:33 +05:30
parent 684fc4e27b
commit 027db0b41e
No known key found for this signature in database
GPG Key ID: 8EA82E09BBD13AAF

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);
});
@ -77,4 +77,4 @@ frappe.team_updates = {
$(frappe.render_template('team_update_row', data)).appendTo(me.body)
}
}
}