format selectors

This commit is contained in:
Sérgio Ramos 2017-02-07 15:53:42 +00:00
parent 666a031eb3
commit b6c1d6aa2a

View File

@ -133,7 +133,8 @@ const instancesByProjectId = (projectId) => createSelector(
); );
const peopleByOrgId = (orgId) => createSelector( const peopleByOrgId = (orgId) => createSelector(
[members, orgById(orgId)], (members, org) => { [members, orgById(orgId)],
(members, org) => {
const matched = []; const matched = [];
if (Object.keys(org.members).length > 0) { if (Object.keys(org.members).length > 0) {
org.members.filter((m) => { org.members.filter((m) => {
@ -148,7 +149,8 @@ const peopleByOrgId = (orgId) => createSelector(
); );
const peopleByProjectId = (projectId) => createSelector( const peopleByProjectId = (projectId) => createSelector(
[members, projectById(projectId)], (members, prj) => { [members, projectById(projectId)],
(members, prj) => {
const matched = []; const matched = [];
if (Object.keys(prj.members).length > 0) { if (Object.keys(prj.members).length > 0) {
prj.members.filter((m) => { prj.members.filter((m) => {