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,
showViewMore = false,
}) => {
if (data.length === 0) {
if (!data || data.length === 0) {
return (
<div className={styles.notFound}>
<img

Loading…
Cancel
Save