From 7c1d4460730c11fe77fdace0a4716f843cc7f9d9 Mon Sep 17 00:00:00 2001
From: 🍓 <lixia.zhang@yoho.cn>
Date: Mon, 12 Jun 2017 11:36:01 +0800
Subject: [PATCH] 首页shipId为空时不请求数据, review by Redding

---
 js/home/reducers/home/homeActions.js | 3 +++
 1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/js/home/reducers/home/homeActions.js b/js/home/reducers/home/homeActions.js
index e288875..a93b4e0 100644
--- a/js/home/reducers/home/homeActions.js
+++ b/js/home/reducers/home/homeActions.js
@@ -536,6 +536,9 @@ function fetchShopInfo(data, channel) {
 		for (let i = 1; i < shopIds.length; i++) {
 		 	shopId =  shopId + ',' +  shopIds[i];
 		}
+		if (shopId == '') {
+			return;
+		}
 
 		dispatch(fetchShopInfoRequest(channelStr));
 
--
libgit2 0.24.0