mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 19:48:50 +03:00
🐛 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:
parent
3025ea21db
commit
2c16ef2f97
@ -116,13 +116,11 @@ export default class MemberController extends Controller {
|
||||
let scratchProps = scratchMember.getProperties(SCRATCH_PROPS);
|
||||
member.setProperties(scratchProps);
|
||||
|
||||
if (!member.isNew) {
|
||||
this.membersStats.invalidate();
|
||||
}
|
||||
|
||||
try {
|
||||
yield member.save();
|
||||
member.updateLabels();
|
||||
this.members.refreshData();
|
||||
|
||||
// replace 'member.new' route with 'member' route
|
||||
this.replaceRoute('member', member);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user