lrf před 2 roky
rodič
revize
3b218c9eef
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      app/service/user/userCoupon.js

+ 1 - 1
app/service/user/userCoupon.js

@@ -213,7 +213,7 @@ class UserCouponService extends CrudService {
         const r = arr.findIndex((f) => arr1.find((ff) => _.isEqual(f, ff)));
         console.log(r);
        */
-      const r = s.goods.some(g => g.tags.find(f => tags.find(ff => _.isEqual(f, ff))));
+      const r = s.goods.some(g => g.tags && g.tags.find(f => tags && tags.find(ff => _.isEqual(f, ff))));
       if (r) {
         result = true;
         break;