format selectors
This commit is contained in:
parent
666a031eb3
commit
b6c1d6aa2a
@ -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) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user