Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
squi-ddy committed May 26, 2024
1 parent 69d83a3 commit 347f120
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/src/components/viewer/RoleViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export default class RoleViewer extends Vue {
defaultPerm: this.editedRole.defaultPerm,
permissions: this.editedRole.permissions
}).then(() => {
if (this.emailsWithRoles) post(`/api/roles/${this.editedRole.rid}/users`, {
if (this.emailsWithRoles.length) post(`/api/roles/${this.editedRole.rid}/users`, {
action: this.usersPopup.action,
emails: this.emailsWithRoles
})
Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 347f120

Please sign in to comment.