Browse Source

🔧: increase code robustness

pull/6062/head
chenshuai2144 6 years ago
parent
commit
207ce90a51
  1. 2
      src/components/NoticeIcon/NoticeList.tsx

2
src/components/NoticeIcon/NoticeList.tsx

@ -34,7 +34,7 @@ const NoticeList: React.SFC<NoticeIconTabProps> = ({
viewMoreText, viewMoreText,
showViewMore = false, showViewMore = false,
}) => { }) => {
if (data.length === 0) { if (!data || data.length === 0) {
return ( return (
<div className={styles.notFound}> <div className={styles.notFound}>
<img <img

Loading…
Cancel
Save