diff --git a/src/forge/Information/Pages/homepage/component/news.jsx b/src/forge/Information/Pages/homepage/component/news.jsx index 3be75a823..e4843b258 100644 --- a/src/forge/Information/Pages/homepage/component/news.jsx +++ b/src/forge/Information/Pages/homepage/component/news.jsx @@ -88,8 +88,8 @@ function News({data, subTitle, firstDirIntro, secondDirIntro}) { const getNewsList = () => { gethomePageDocList(id).then(result=>{ - if(result){ - setShowNew(result.data.rows && result.data.rows[0]); + if(result && result.data.rows && result.data.rows[0]){ + setShowNew(result.data.rows[0]); } }).catch(error=>{}) }