Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix #239 so we always show a table when you select a collection of 1 …
…or more mbeans (e.g. Queues / Topics / routes / contexts etc)
  • Loading branch information
jstrachan committed Apr 10, 2013
1 parent b8ff9ac commit 66bd2dc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions hawtio-web/src/main/webapp/app/jmx/js/attributes.ts
Expand Up @@ -160,9 +160,7 @@ module Jmx {
var query = mbeans.map((mbean) => {
return { type: "READ", mbean: mbean, ignoreErrors: true};
});
if (query.length === 1) {
request = query[0];
} else if (query.length > 1) {
if (query.length > 0) {
request = query;

// deal with multiple results
Expand Down

0 comments on commit 66bd2dc

Please sign in to comment.