Skip to content

Commit

Permalink
[ML] Fix expanded row bug when job has no datafeed (#68074) (#68094)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic authored Jun 3, 2020
1 parent ec3c611 commit 088834d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export function extractJobDetails(job) {
defaultMessage: 'Datafeed',
}),
position: 'left',
items: filterObjects(job.datafeed_config, true, true),
items: filterObjects(job.datafeed_config || {}, true, true),
};
if (job.node) {
datafeed.items.push(['node', JSON.stringify(job.node)]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export class JobDetails extends Component {
},
];

if (showFullDetails) {
if (showFullDetails && datafeed.items.length) {
// Datafeed should be at index 2 in tabs array for full details
tabs.splice(2, 0, {
id: 'datafeed',
Expand Down

0 comments on commit 088834d

Please sign in to comment.