@@ -134,7 +134,7 @@ export default function JobEditFormWrapper({
134134 const getBaseSchemaDefaults = ( config : JobConfig = jobConfig ) => ( {
135135 jobType : job . resources . jobType ,
136136 specifications : {
137- applicationType : APPLICATION_TYPES [ 0 ] , // TODO: Get from job after the API update
137+ applicationType : APPLICATION_TYPES [ 0 ] , // Disabled for now
138138 targetNodesCount : Number ( job . numberOfNodesRequested ) ,
139139 jobTags : ! job . jobTags ? [ ] : job . jobTags . filter ( ( tag ) => ! tag . startsWith ( 'CT:' ) ) ,
140140 nodesCountries : ! job . jobTags
@@ -173,7 +173,7 @@ export default function JobEditFormWrapper({
173173 } ,
174174 deployment : {
175175 ...getBaseSchemaDeploymentDefaults ( ) ,
176- pipelineParams : [ ] , // TODO: Missing from the API response
176+ pipelineParams : getPipelineParams ( ) ,
177177 pipelineInputType : job . pipelineData . TYPE ,
178178 pipelineInputUri : job . pipelineData . URL ,
179179 chainstoreResponse : BOOLEAN_TYPES [ 1 ] ,
@@ -194,6 +194,10 @@ export default function JobEditFormWrapper({
194194 } ,
195195 } ) ;
196196
197+ const getPipelineParams = ( ) => {
198+ return ! job . pipelineParams ? [ ] : Object . entries ( job . pipelineParams ) . map ( ( [ key , value ] ) => ( { key, value } ) ) ;
199+ } ;
200+
197201 const getPortMappings = ( config : JobConfig ) => {
198202 return ! config . CONTAINER_RESOURCES . ports
199203 ? [ ]
0 commit comments