From 2fa5a26573266735ee6ed94f0fcd88d34fc37435 Mon Sep 17 00:00:00 2001 From: Minqi Pan Date: Sun, 24 Jun 2018 14:59:42 +0800 Subject: [PATCH] stop re-assigning read-only "currentUser" --- src/components/GlobalHeader/index.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/components/GlobalHeader/index.js b/src/components/GlobalHeader/index.js index f84d2d2e..2befb2e2 100644 --- a/src/components/GlobalHeader/index.js +++ b/src/components/GlobalHeader/index.js @@ -68,9 +68,6 @@ export default class GlobalHeader extends PureComponent { onMenuClick, onNoticeClear, } = this.props; - if (currentUser == null) { - currentUser = {}; - } const menu = ( -- GitLab