mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 11:57:16 +08:00
Fix designated users flyout filtering [SCI-10415] (#7252)
This commit is contained in:
parent
311bae9b58
commit
166a9592f5
2 changed files with 4 additions and 2 deletions
|
@ -117,7 +117,9 @@ class UserMyModulesController < ApplicationController
|
|||
user_hash
|
||||
end
|
||||
|
||||
render json: users.compact
|
||||
render json: {
|
||||
users: users.compact
|
||||
}
|
||||
end
|
||||
|
||||
private
|
||||
|
|
|
@ -99,7 +99,7 @@ export default {
|
|||
loadUsers() {
|
||||
axios.get(`${this.params.data.urls.users_list}?query=${this.query}`)
|
||||
.then((response) => {
|
||||
this.allUsers = response.data;
|
||||
this.allUsers = response.data.users;
|
||||
});
|
||||
},
|
||||
closeFlyout() {
|
||||
|
|
Loading…
Add table
Reference in a new issue