From a60dd0248e5d0a2691ec7bc7024a8d613e26712a Mon Sep 17 00:00:00 2001 From: Brian Doyle Date: Sun, 25 Dec 2016 06:55:49 -0800 Subject: [PATCH] Blue bar fix --- MessageBar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MessageBar.js b/MessageBar.js index dbe985e..d4e5c99 100644 --- a/MessageBar.js +++ b/MessageBar.js @@ -35,7 +35,9 @@ class MessageBar extends Component { } componentWillReceiveProps(nextProps) { - this.setNewState(nextProps); + if (nextProps && Object.keys(nextProps).length > 0) { + this.setNewState(nextProps); + } } setNewState(state) {