Commit 2fa5a265 authored by Minqi Pan's avatar Minqi Pan Committed by 偏右

stop re-assigning read-only "currentUser"

parent d7b87c27
...@@ -68,9 +68,6 @@ export default class GlobalHeader extends PureComponent { ...@@ -68,9 +68,6 @@ export default class GlobalHeader extends PureComponent {
onMenuClick, onMenuClick,
onNoticeClear, onNoticeClear,
} = this.props; } = this.props;
if (currentUser == null) {
currentUser = {};
}
const menu = ( const menu = (
<Menu className={styles.menu} selectedKeys={[]} onClick={onMenuClick}> <Menu className={styles.menu} selectedKeys={[]} onClick={onMenuClick}>
<Menu.Item disabled> <Menu.Item disabled>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment