Skip to content

Commit

Permalink
Merge pull request #1 from leosurwiki/Blue-Bar-Fix
Browse files Browse the repository at this point in the history
"Blue Bar" Fix
  • Loading branch information
leosurwiki authored Jul 19, 2018
2 parents 9949829 + 7bb7208 commit ab78b64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MessageBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ab78b64

Please sign in to comment.