format selectors
This commit is contained in:
parent
666a031eb3
commit
b6c1d6aa2a
@ -67,8 +67,8 @@ const isCollapsed = (collapsed, uuid) => collapsed.indexOf(uuid) >= 0;
|
||||
|
||||
const datasets = (metricsData, serviceOrInstanceMetrics, metricsUI) =>
|
||||
serviceOrInstanceMetrics.map((soim) => ({
|
||||
...find(metricsData.datasets, [ 'uuid', soim.dataset ]),
|
||||
type: find(metricsData.types, [ 'id', soim.type ]),
|
||||
...find(metricsData.datasets, ['uuid', soim.dataset]),
|
||||
type: find(metricsData.types, ['id', soim.type]),
|
||||
...metricsUI[soim.dataset]
|
||||
}));
|
||||
|
||||
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user