From aa96457313a74ccdfd7288ef8fc208ff3d7ed643 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Fri, 14 Oct 2022 09:35:11 -0400 Subject: [PATCH] Fix --- .../src/containers/mapProps.tsx | 3 ++- .../redux-devtools-rtk-query-monitor/src/utils/comparators.ts | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/redux-devtools-rtk-query-monitor/src/containers/mapProps.tsx b/packages/redux-devtools-rtk-query-monitor/src/containers/mapProps.tsx index 2dc00182..79271e9f 100644 --- a/packages/redux-devtools-rtk-query-monitor/src/containers/mapProps.tsx +++ b/packages/redux-devtools-rtk-query-monitor/src/containers/mapProps.tsx @@ -16,7 +16,8 @@ export function mapProps( render(): ReactNode { const mappedProps = mapper(this.props); - return ; + // TODO Not really sure why this is needed, but it is + return ; } static displayName = `mapProps(${ diff --git a/packages/redux-devtools-rtk-query-monitor/src/utils/comparators.ts b/packages/redux-devtools-rtk-query-monitor/src/utils/comparators.ts index ff923a21..8714a864 100644 --- a/packages/redux-devtools-rtk-query-monitor/src/utils/comparators.ts +++ b/packages/redux-devtools-rtk-query-monitor/src/utils/comparators.ts @@ -55,6 +55,9 @@ export function compareJSONPrimitive< return 0; } + if (a == null) return -1; + if (b == null) return 1; + return a > b ? 1 : -1; }