Fix designated users flyout filtering [SCI-10415] (#7252)

This commit is contained in:
ajugo 2024-03-12 14:16:45 +01:00 committed by GitHub
parent 311bae9b58
commit 166a9592f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -117,7 +117,9 @@ class UserMyModulesController < ApplicationController
user_hash user_hash
end end
render json: users.compact render json: {
users: users.compact
}
end end
private private

View file

@ -99,7 +99,7 @@ export default {
loadUsers() { loadUsers() {
axios.get(`${this.params.data.urls.users_list}?query=${this.query}`) axios.get(`${this.params.data.urls.users_list}?query=${this.query}`)
.then((response) => { .then((response) => {
this.allUsers = response.data; this.allUsers = response.data.users;
}); });
}, },
closeFlyout() { closeFlyout() {