mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-26 07:59:48 +03:00
Fix
This commit is contained in:
parent
a2579a8669
commit
aa96457313
|
@ -16,7 +16,8 @@ export function mapProps<In, Out>(
|
|||
render(): ReactNode {
|
||||
const mappedProps = mapper(this.props);
|
||||
|
||||
return <Comp {...mappedProps} />;
|
||||
// TODO Not really sure why this is needed, but it is
|
||||
return <Comp {...(mappedProps as Out & JSX.IntrinsicElements)} />;
|
||||
}
|
||||
|
||||
static displayName = `mapProps(${
|
||||
|
|
|
@ -55,6 +55,9 @@ export function compareJSONPrimitive<
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (a == null) return -1;
|
||||
if (b == null) return 1;
|
||||
|
||||
return a > b ? 1 : -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user