fix: no records tagged getting rendered multiple times

This commit is contained in:
prssanna 2019-12-17 16:58:52 +05:30 committed by Suraj Shetty
parent 0c042ef35b
commit 0728529b6e

View file

@ -41,6 +41,7 @@ frappe.views.ListSidebar = class ListSidebar {
} else {
this.sidebar.find('.list-stats').on('click', (e) => {
$(e.currentTarget).find('.stat-link').remove();
$(e.currentTarget).find('.stat-no-records').remove();
this.get_stats();
});
}