ellisran 3 dní pred
rodič
commit
cbb39232d6
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      app/public/js/shenpi.js

+ 1 - 1
app/public/js/shenpi.js

@@ -218,7 +218,7 @@ function getShenpiHtml (this_code) {
             if(aidList.length > 0) {
                 for (const uid of aidList) {
                     const user = _.find(accountList, { id: uid });
-                    nameList.push(user.name);
+                    if (user) nameList.push(user.name);
                 }
             }
             html.push('<i class="fa fa-question-circle text-primary" data-container="body" data-toggle="tooltip" data-placement="bottom" ' +