summaryrefslogtreecommitdiffstats
path: root/js/controller/ContentController.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/controller/ContentController.js')
-rw-r--r--js/controller/ContentController.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/controller/ContentController.js b/js/controller/ContentController.js
index 0def46a15..f4a6981b1 100644
--- a/js/controller/ContentController.js
+++ b/js/controller/ContentController.js
@@ -226,11 +226,13 @@ app.controller('ContentController', function (Publisher, FeedResource, ItemResou
this.userList = [];
this.searchUsers = function(search) {
- if (search === '') {
+ // TODO: search === undefined 🤢 je pense pas que c'est ouf comme syntaxe
+ if (search === '' || search === undefined) {
this.userList = [];
return;
}
+ // TODO: bug - requetes retardataires (regarder issues git)
var response = UserResource.getUsers(search);
response.then((response) => {
this.userList = response.ocs.data.users;