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(
|
return R.merge(
|
||||||
{ state },
|
{ state },
|
||||||
R.mapValues(
|
R.mapValues(
|
||||||
subduxes['*'].selectors,
|
subduxes['*']?.selectors ?? {},
|
||||||
(selector) =>
|
(selector) =>
|
||||||
(...args) => {
|
(...args) => {
|
||||||
let value = selector(state);
|
let value = selector(state);
|
||||||
|
Loading…
Reference in New Issue
Block a user