mirror of
https://github.com/yldio/copilot.git
synced 2024-11-10 21:30:06 +02:00
Fix instances list page error
This commit is contained in:
parent
444e39599d
commit
3c62084f44
@ -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)
|
||||||
}))
|
}))
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user