Fixes wrong update of role object after editing recently created one.

This commit is contained in:
mateuswetah 2020-12-08 17:55:59 -03:00
parent f42536a5eb
commit 8c2b96e03c
1 changed files with 1 additions and 0 deletions

View File

@ -358,6 +358,7 @@
this.createRole(this.role) this.createRole(this.role)
.then((createdRole) => { .then((createdRole) => {
this.roleSlug = createdRole.slug; this.roleSlug = createdRole.slug;
this.role = createdRole;
this.$router.push('/roles/' + this.roleSlug); this.$router.push('/roles/' + this.roleSlug);
this.isUpdatingRole = false; this.isUpdatingRole = false;
this.showNotice = true; this.showNotice = true;