8000 Fixed bug with undefined _extraRadiumStateKeys (#1025) · FormidableLabs/radium@c9157ab · GitHub
[go: up one dir, main page]

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

Commit c9157ab

Browse files
wassghaKyle Cesmat
authored andcommitted
Fixed bug with undefined _extraRadiumStateKeys (#1025)
1 parent e9c94c3 commit c9157ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/enhancer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ function createEnhancedComponent(
183183
super.componentDidUpdate.call(this, prevProps, prevState, snapshot);
184184
}
185185

186-
if (this._extraRadiumStateKeys.length > 0) {
186+
if (this._extraRadiumStateKeys && this._extraRadiumStateKeys.length > 0) {
187187
const trimmedRadiumState = this._extraRadiumStateKeys.reduce(
188188
(state, key) => {
189189
const {[key]: extraStateKey, ...remainingState} = state;

0 commit comments

Comments
 (0)
0