From ab19e54199ffe547a200211151547dd6a90e781e Mon Sep 17 00:00:00 2001 From: James Gowdy Date: Fri, 12 Jun 2020 14:52:53 +0100 Subject: [PATCH] flooring number input --- .../jobs_list/components/edit_job_flyout/tabs/job_details.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/ml/public/application/jobs/jobs_list/components/edit_job_flyout/tabs/job_details.js b/x-pack/plugins/ml/public/application/jobs/jobs_list/components/edit_job_flyout/tabs/job_details.js index 17a0e18dcea16..01243f980fa3c 100644 --- a/x-pack/plugins/ml/public/application/jobs/jobs_list/components/edit_job_flyout/tabs/job_details.js +++ b/x-pack/plugins/ml/public/application/jobs/jobs_list/components/edit_job_flyout/tabs/job_details.js @@ -73,7 +73,7 @@ export class JobDetails extends Component { }; onModelSnapshotRetentionDaysChange = (e) => { - this.setJobDetails({ jobModelSnapshotRetentionDays: +e.target.value }); + this.setJobDetails({ jobModelSnapshotRetentionDays: Math.floor(+e.target.value) }); }; onGroupsChange = (selectedGroups) => {