1
0
mirror of https://github.com/yldio/copilot.git synced 2024-12-01 07:30:07 +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( 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) instances.filter((i) => i.project === project.uuid)
.map((instance) => ({ .map((instance) => ({
...instance, ...instance,
metrics: datasets(metrics, instance.metrics), metrics: datasets(metrics, instance.metrics, metricsUI),
collapsed: isCollapsed(collapsed, instance.uuid) collapsed: isCollapsed(collapsed, instance.uuid)
})) }))
); );