Correctly format incoming environment names
This commit is contained in:
parent
2daad4d057
commit
5210b9e17a
@ -18,14 +18,16 @@ export default {
|
||||
|
||||
data: function () {
|
||||
const {
|
||||
name,
|
||||
description,
|
||||
environments = [ createEnvironment() ]
|
||||
environment_names,
|
||||
} = this.initialData
|
||||
|
||||
const environments = (
|
||||
environment_names.length > 0
|
||||
? environment_names
|
||||
: [""]
|
||||
).map(createEnvironment)
|
||||
|
||||
return {
|
||||
name,
|
||||
description,
|
||||
environments,
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user