提交 420305d0 编写于 作者: Z zhangle

bugfix: not latest release instances group by release id

上级 ee00c5fa
......@@ -253,11 +253,11 @@ directive_module.directive('apollonspanel',
if (configs.length > 0) {
configs.forEach(function (instanceConfig) {
var release = instanceConfig.release;
if (!groupedInstances[release.name]) {
groupedInstances[release.name] = [];
if (!groupedInstances[release.id]) {
groupedInstances[release.id] = [];
notLatestReleases.push(release);
}
groupedInstances[release.name].push(instance);
groupedInstances[release.id].push(instance);
})
}
});
......
......@@ -429,7 +429,7 @@
</tr>
</thead>
<tbody>
<tr ng-repeat="instance in namespace.notLatestReleaseInstances[release.name]">
<tr ng-repeat="instance in namespace.notLatestReleaseInstances[release.id]">
<td width="25%" ng-bind="instance.appId"></td>
<td width="25%" ng-bind="instance.clusterName"></td>
<td width="25%" ng-bind="instance.dataCenter"></td>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册