lrf пре 2 година
родитељ
комит
3b218c9eef
1 измењених фајлова са 1 додато и 1 уклоњено
  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;