Skip to content

Commit 387d81f

Browse files
committed
adding extra datafeed_config check
1 parent 762b882 commit 387d81f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

x-pack/legacy/plugins/ml/public/jobs/jobs_list/components/job_details/extract_job_details.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ export function extractJobDetails(job) {
152152
defaultMessage: 'Timing stats'
153153
}),
154154
position: 'right',
155-
items: filterObjects(job.datafeed_config.timing_stats).map(formatValues)
155+
items: (job.datafeed_config && job.datafeed_config.timing_stats) ?
156+
filterObjects(job.datafeed_config.timing_stats).map(formatValues) : []
156157
};
157158

158159
return {

x-pack/legacy/plugins/ml/public/services/job_service.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ class JobService {
351351
delete tempJob.datafeed_config.job_id;
352352
delete tempJob.datafeed_config.state;
353353
delete tempJob.datafeed_config.node;
354+
delete tempJob.datafeed_config.timing_stats;
354355

355356
// remove query_delay if it's between 60s and 120s
356357
// the back-end produces a random value between 60 and 120 and so

0 commit comments

Comments
 (0)