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( 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);