Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Commit

Permalink
Merge aff7e54 into dc5680c
Browse files Browse the repository at this point in the history
  • Loading branch information
wassgha committed May 9, 2019
2 parents dc5680c + aff7e54 commit f1ab1d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/enhancer.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ function createEnhancedComponent(
super.componentDidUpdate.call(this, prevProps, prevState, snapshot);
}

if (this._extraRadiumStateKeys.length > 0) {
if (this._extraRadiumStateKeys && this._extraRadiumStateKeys.length > 0) {
const trimmedRadiumState = this._extraRadiumStateKeys.reduce(
(state, key) => {
const {[key]: extraStateKey, ...remainingState} = state;
Expand Down

0 comments on commit f1ab1d5

Please sign in to comment.