Skip to content

Commit

Permalink
fix saveJob/saveDatafeed
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Aug 8, 2024
1 parent ffc2aed commit 9e35cfb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,11 @@ export class EditJobFlyoutUI extends Component {
customUrls: this.state.jobCustomUrls,
};

const mlApiServices = this.props.kibana.services.mlServices.mlApiServices;
const { toasts } = this.props.kibana.services.notifications;
const toastNotificationService = toastNotificationServiceProvider(toasts);

saveJob(this.state.job, newJobData)
saveJob(mlApiServices, this.state.job, newJobData)
.then(() => {
toasts.addSuccess(
i18n.translate('xpack.ml.jobsList.editJobFlyout.changesSavedNotificationMessage', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function saveJob(mlApiServices, job, newJobData, finish) {
}

const saveDatafeedWrapper = () => {
saveDatafeed(datafeedData, job, finish)
saveDatafeed(mlApiServices, datafeedData, job, finish)
.then(() => {
resolve();
})
Expand Down

0 comments on commit 9e35cfb

Please sign in to comment.