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

Commit

Permalink
Fixed bug with undefined _extraRadiumStateKeys (#1025)
Browse files Browse the repository at this point in the history
  • Loading branch information
wassgha authored and Kyle Cesmat committed May 17, 2019
1 parent e9c94c3 commit c9157ab
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 c9157ab

Please sign in to comment.