diff --git a/public/js/app.js b/public/js/app.js index 7d70b7fece..59fffd36d0 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -597,7 +597,7 @@ function initRepoSetting() { url: '/api/v1/users/search?q=' + $this.val(), dataType: "json", success: function (json) { - if (json.ok && json.data) { + if (json.ok && json.data.length) { var html = ''; $.each(json.data, function (i, item) { html += '