Browse Source

🐛 bug: more robust code judgment

pull/6304/head
chenshuai2144 6 years ago
parent
commit
b005f2a465
  1. 2
      src/components/GlobalHeader/NoticeIconView.tsx

2
src/components/GlobalHeader/NoticeIconView.tsx

@ -57,7 +57,7 @@ class GlobalHeaderRight extends Component<GlobalHeaderRightProps> {
} => {
const { notices = [] } = this.props;
if (!notices || notices.length === 0) {
if (!notices || notices.length === 0 || !Array.isArray(notices)) {
return {};
}

Loading…
Cancel
Save