提交 b005f2a4 编写于 作者: C chenshuai2144

🐛 bug: more robust code judgment

上级 005ef056
......@@ -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 {};
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册