1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 14:10:04 +02:00

Fix instances list page error

This commit is contained in:
JUDIT GRESKOVITS 2017-02-22 14:24:02 +00:00
parent 444e39599d
commit 3c62084f44

View File

@ -122,12 +122,18 @@ const metricTypeByUuid = (metricTypeUuid) => createSelector(
const instancesByProjectId = (projectId) => createSelector(
[instances, projectById(projectId), collapsedInstances, metricsData],
(instances, project, collapsed, metrics) =>
[
instances,
projectById(projectId),
collapsedInstances,
metricsData,
metricsUI
],
(instances, project, collapsed, metrics, metricsUI) =>
instances.filter((i) => i.project === project.uuid)
.map((instance) => ({
...instance,
metrics: datasets(metrics, instance.metrics),
metrics: datasets(metrics, instance.metrics, metricsUI),
collapsed: isCollapsed(collapsed, instance.uuid)
}))
);