mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-22 14:09:46 +03:00
Fix
This commit is contained in:
parent
d82cd1611a
commit
6a1fb4228b
|
@ -89,7 +89,7 @@ export default function createDevTools<
|
|||
|
||||
constructor(
|
||||
props: Props<S, A, MonitorState, MonitorAction>,
|
||||
context: { store?: EnhancedStore<S, A, MonitorState> },
|
||||
context?: { store?: EnhancedStore<S, A, MonitorState> },
|
||||
) {
|
||||
super(props, context);
|
||||
|
||||
|
@ -100,12 +100,12 @@ export default function createDevTools<
|
|||
return;
|
||||
}
|
||||
|
||||
if (!props.store && !context.store) {
|
||||
if (!props.store && !context?.store) {
|
||||
logError('NoStore');
|
||||
return;
|
||||
}
|
||||
|
||||
if (context.store) {
|
||||
if (context?.store) {
|
||||
this.liftedStore = context.store.liftedStore;
|
||||
} else {
|
||||
this.liftedStore = props.store!.liftedStore;
|
||||
|
|
Loading…
Reference in New Issue
Block a user