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)
}))
);