Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
fix: 热门内容边界处理
gaoSir2159814d57f4
diff --git a/src/app/[lng]/hotContent/components/HotContent/index.tsx b/src/app/[lng]/hotContent/components/HotContent/index.tsxindex 554fddfa..5f074f2b 100644--- a/src/app/[lng]/hotContent/components/HotContent/index.tsx+++ b/src/app/[lng]/hotContent/components/HotContent/index.tsx@@ -328,10 +328,11 @@ const HotContent = memo(dataIndex: "baseInfo",render: (text, data) => {const platInfo = getPlatEnum(- selectedLabelInfo.ranking.platform.type,+ selectedLabelInfo.ranking?.platform?.type,);- const platConfig = AccountPlatInfoMap.get(platInfo!.plat)!;- console.log(platConfig);+ const platConfig = AccountPlatInfoMap.get(+ platInfo?.plat ?? PlatType.Xhs,+ )!;return (<HotContentBaseInfo