Authored by chenl

调整了获取不到category时不调用getCategoryBSubCategoryDetail方法。review by 于良。

@@ -202,9 +202,9 @@ export function getCategoryBFirstSubCategoryDetail(channel_id) { @@ -202,9 +202,9 @@ export function getCategoryBFirstSubCategoryDetail(channel_id) {
202 category = categoryList.get('lifestyle').get(0); 202 category = categoryList.get('lifestyle').get(0);
203 } 203 }
204 204
205 - let category_id = category ? category.get('category_id') : "";  
206 - let category_name = category ? category.get('category_name') : "";  
207 - dispatch(getCategoryBSubCategoryDetail(category_id, category_name)); 205 + if(category){
  206 + dispatch(getCategoryBSubCategoryDetail(category.get('category_id'), category.get('category_name')));
  207 + }
208 }; 208 };
209 } 209 }
210 210