From 0b0ea7ea66ec2bcbe68a80345947a8528ce527eb Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Tue, 6 Sep 2022 11:35:06 -0400 Subject: [PATCH] safely deal if there are no subdux selectors --- src/selectors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/selectors.js b/src/selectors.js index 69f73e2..e90b4e9 100644 --- a/src/selectors.js +++ b/src/selectors.js @@ -28,7 +28,7 @@ export function buildSelectors( return R.merge( { state }, R.mapValues( - subduxes['*'].selectors, + subduxes['*']?.selectors ?? {}, (selector) => (...args) => { let value = selector(state);