safely deal if there are no subdux selectors
This commit is contained in:
parent
dd0dda0970
commit
0b0ea7ea66
@ -28,7 +28,7 @@ export function buildSelectors(
|
||||
return R.merge(
|
||||
{ state },
|
||||
R.mapValues(
|
||||
subduxes['*'].selectors,
|
||||
subduxes['*']?.selectors ?? {},
|
||||
(selector) =>
|
||||
(...args) => {
|
||||
let value = selector(state);
|
||||
|
Loading…
Reference in New Issue
Block a user