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) =>
|
const datasets = (metricsData, serviceOrInstanceMetrics, metricsUI) =>
|
||||||
serviceOrInstanceMetrics.map((soim) => ({
|
serviceOrInstanceMetrics.map((soim) => ({
|
||||||
...find(metricsData.datasets, [ 'uuid', soim.dataset ]),
|
...find(metricsData.datasets, ['uuid', soim.dataset]),
|
||||||
type: find(metricsData.types, [ 'id', soim.type ]),
|
type: find(metricsData.types, ['id', soim.type]),
|
||||||
...metricsUI[soim.dataset]
|
...metricsUI[soim.dataset]
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@ -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