Commit a9ae6d06 authored by Bill's avatar Bill

fix: 修改活动标签默认值

parent d7be4863
......@@ -115,7 +115,7 @@ const CommodityItem: React.FC<Iprops> = (props: Iprops) => {
plummetPrice,
...otherRestProps
} = rest as any;
const activityLabel = activityList.find((_item) => _item.id === activityId);
const activityLabel = activityList?.find((_item) => _item.id === activityId);
const withLabel = activityLabel && activityLabel.label ? {tags: [activityLabel.label]} : {};
const horizontalData = {
name,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment