aboutsummaryrefslogtreecommitdiff
path: root/resources/assets/javascripts/lib/blubber.js
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-12-09 11:58:51 +0100
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-12-09 11:59:02 +0100
commit4883e1f14d4efc6b95ca29346f1e79a5b357b1c7 (patch)
tree27a6148346e4a7e6e79899dfb4632ecba377567f /resources/assets/javascripts/lib/blubber.js
parent140439a7a273db1ff10386e83e26cc870c0d4bd2 (diff)
fix vue errors, re #3747
Diffstat (limited to 'resources/assets/javascripts/lib/blubber.js')
-rw-r--r--resources/assets/javascripts/lib/blubber.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/resources/assets/javascripts/lib/blubber.js b/resources/assets/javascripts/lib/blubber.js
index df4f3d7..9124099 100644
--- a/resources/assets/javascripts/lib/blubber.js
+++ b/resources/assets/javascripts/lib/blubber.js
@@ -76,13 +76,9 @@ const Blubber = {
name: name,
});
},
- removeUser: function (event) {
+ removeUser(event) {
let user_id = $(event.target).closest('li').find('input').val();
- for (let i in this.users) {
- if (this.users[i].user_id === user_id) {
- this.$delete(this.users, i);
- }
- }
+ this.users = this.users.filter(user => user.user_id !== user_id);
},
clearUsers: function () {
this.users = [];