Update TrainingJob based on the change in the return value of getPipelines(). 63/13463/1
authorTaewan Kim <t25.kim@samsung.com>
Wed, 25 Sep 2024 13:09:46 +0000 (22:09 +0900)
committerTaewan Kim <t25.kim@samsung.com>
Wed, 25 Sep 2024 13:25:13 +0000 (22:25 +0900)
Issue-ID: AIMLFW-146

Change-Id: Ief3c9546618fa819aa7312743083d46c4087fa51
Signed-off-by: Taewan Kim <t25.kim@samsung.com>
src/components/home/form/CreateOrEditTrainingJobForm.js

index 121736b..c1d74d5 100644 (file)
@@ -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 ---{' '}
                       </option>
                       {this.state.plList.map(data => (
-                        <option key={data} value={data}>
-                          {data}
+                        <option key={data.display_name} value={data.display_name}>
+                          {data.display_name}
                         </option>
                       ))}
                     </Form.Control>