🐛 Fixed member list not updating when manually adding a new member

no issue

- always refresh members list/stats data when adding or saving a member from the members screen
This commit is contained in:
Kevin Ansfield 2020-06-05 09:00:40 +01:00
parent 3025ea21db
commit 2c16ef2f97

View File

@ -116,13 +116,11 @@ export default class MemberController extends Controller {
let scratchProps = scratchMember.getProperties(SCRATCH_PROPS); let scratchProps = scratchMember.getProperties(SCRATCH_PROPS);
member.setProperties(scratchProps); member.setProperties(scratchProps);
if (!member.isNew) {
this.membersStats.invalidate();
}
try { try {
yield member.save(); yield member.save();
member.updateLabels(); member.updateLabels();
this.members.refreshData();
// replace 'member.new' route with 'member' route // replace 'member.new' route with 'member' route
this.replaceRoute('member', member); this.replaceRoute('member', member);