From: Taewan Kim Date: Wed, 25 Sep 2024 13:09:46 +0000 (+0900) Subject: Update TrainingJob based on the change in the return value of getPipelines(). X-Git-Tag: 4.0.0~25 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F63%2F13463%2F1;p=portal%2Faiml-dashboard.git Update TrainingJob based on the change in the return value of getPipelines(). Issue-ID: AIMLFW-146 Change-Id: Ief3c9546618fa819aa7312743083d46c4087fa51 Signed-off-by: Taewan Kim --- diff --git a/src/components/home/form/CreateOrEditTrainingJobForm.js b/src/components/home/form/CreateOrEditTrainingJobForm.js index 121736b..c1d74d5 100644 --- a/src/components/home/form/CreateOrEditTrainingJobForm.js +++ b/src/components/home/form/CreateOrEditTrainingJobForm.js @@ -134,10 +134,10 @@ class CreateTrainingJob extends React.Component { pipelineAPI .getPipelines() .then(res => { - this.logger('Server reponded pl', res.data.pipeline_names); + this.logger('Server reponded pl', res.data); this.setState( { - plList: res.data.pipeline_names, + plList: res.data.pipelines, }, () => { let shouldChangePlName = true; @@ -746,8 +746,8 @@ class CreateTrainingJob extends React.Component { --- Select Training Function ---{' '} {this.state.plList.map(data => ( - ))}