safely deal if there are no subdux selectors

This commit is contained in:
Yanick Champoux 2022-09-06 11:35:06 -04:00
parent dd0dda0970
commit 0b0ea7ea66

View File

@ -28,7 +28,7 @@ export function buildSelectors(
return R.merge(
{ state },
R.mapValues(
subduxes['*'].selectors,
subduxes['*']?.selectors ?? {},
(selector) =>
(...args) => {
let value = selector(state);