소스 검색

fix collaboration js bug

FuXiaoHei 11 년 전
부모
커밋
ad71775ae8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      public/js/app.js

+ 1 - 1
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 += '<li><img src="' + item.avatar + '">' + item.username + '</li>';