@@ -255,8 +255,8 @@ export default {
255
255
if (surveyVar .type === ' select' && this .editedEnvironment [surveyVar .name ] !== undefined ) {
256
256
const currentValue = this .editedEnvironment [surveyVar .name ];
257
257
if (! Array .isArray (currentValue)) {
258
- this .editedEnvironment [surveyVar .name ] =
259
- currentValue == null || currentValue === ' ' ? [] : [currentValue];
258
+ this .editedEnvironment [surveyVar .name ] = currentValue == null || currentValue === ' '
259
+ ? [] : [currentValue];
260
260
}
261
261
}
262
262
});
@@ -287,22 +287,22 @@ export default {
287
287
[this .buildTasks , this .inventory ] = await Promise .all ([
288
288
this .template .type === ' deploy'
289
289
? (
290
- await axios ({
291
- keys: ' get' ,
292
- url: ` /api/project/${ this .projectId } /templates/${ this .template .build_template_id } /tasks?status=success&limit=20` ,
293
- responseType: ' json' ,
294
- })
295
- ).data .filter ((task ) => task .status === ' success' )
290
+ await axios ({
291
+ keys: ' get' ,
292
+ url: ` /api/project/${ this .projectId } /templates/${ this .template .build_template_id } /tasks?status=success&limit=20` ,
293
+ responseType: ' json' ,
294
+ })
295
+ ).data .filter ((task ) => task .status === ' success' )
296
296
: [],
297
297
298
298
this .needInventory
299
299
? (
300
- await axios ({
301
- keys: ' get' ,
302
- url: this .getInventoryUrl (),
303
- responseType: ' json' ,
304
- })
305
- ).data
300
+ await axios ({
301
+ keys: ' get' ,
302
+ url: this .getInventoryUrl (),
303
+ responseType: ' json' ,
304
+ })
305
+ ).data
306
306
: [],
307
307
]);
308
308
@@ -322,10 +322,7 @@ export default {
322
322
{},
323
323
);
324
324
325
- this .editedEnvironment = {
326
- ... defaultVars,
327
- ... this .editedEnvironment ,
328
- };
325
+ this .editedEnvironment = { ... defaultVars, ... this .editedEnvironment };
329
326
330
327
// Ensure select type variables without values are initialized as empty arrays
331
328
(this .template .survey_vars || []).forEach ((surveyVar ) => {
0 commit comments