mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-08 01:19:13 +02:00
fix collaboration js bug
This commit is contained in:
1 parent
0dfb5560cd
commit
ad71775ae8
1 file changed
+1
-1
+1
-1
@@ -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 += '<li><img src="' + item.avatar + '">' + item.username + '</li>';
|
||||
|
||||
Reference in new issue
Block a user