zhusiqing 5 жил өмнө
parent
commit
8f0e02b872
1 өөрчлөгдсөн 3 нэмэгдсэн , 1 устгасан
  1. 3 1
      server.js

+ 3 - 1
server.js

@@ -178,7 +178,9 @@ router.post('/reviews', ctx => {
     if (STATIC_DATA.indexOf(el) !== -1) {
       return true
     }
-    noExist.push(el)
+    if (el) {
+      noExist.push(el)
+    }
     return false
   })
   try {