Browse Source

🔧: increase code robustness

pull/6062/head
chenshuai2144 6 years ago
parent
commit
ebb9a48229
  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; const { notices = [] } = this.props;
if (notices.length === 0) { if (!notices || notices.length === 0) {
return {}; return {};
} }

Loading…
Cancel
Save