mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 20:05:55 +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
|
user_hash
|
||||||
end
|
end
|
||||||
|
|
||||||
render json: users.compact
|
render json: {
|
||||||
|
users: users.compact
|
||||||
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue