summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurélien <dav.aurelien@gmail.com>2021-03-20 16:30:26 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 23:17:31 +0200
commit4e9875d5c60afd43240e274865c731d488f3ce31 (patch)
tree7b6b37797d1f57cf149d8e1bfb5bfabb89381e2e
parentf6a5b8e29ad6d41fb26de9238a86fb58317e2692 (diff)
Reverse concat in user search
Signed-off-by: Aurélien <dav.aurelien@gmail.com>
-rw-r--r--js/controller/ShareController.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/controller/ShareController.js b/js/controller/ShareController.js
index 0eb7b81c9..3289edf6a 100644
--- a/js/controller/ShareController.js
+++ b/js/controller/ShareController.js
@@ -39,8 +39,8 @@ app.controller('ShareController', function (ShareResource, Loading) {
ShareResource.getUsers(search)
.then((response) => {
if (this.searchQuery === search) {
- this.userList = response.ocs.data.users;
- this.userList = this.userList.concat(response.ocs.data.exact.users);
+ this.userList = response.ocs.data.exact.users;
+ this.userList = this.userList.concat(response.ocs.data.users);
Loading.setLoading('user', false);
}
})