1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-10 21:30:06 +02:00

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