[ML] Fix expanded row bug when job has no datafeed (#68074)
This commit is contained in:
parent
0897418795
commit
c718afcbba
2 changed files with 2 additions and 2 deletions
|
@ -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)]);
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue