Some missing async handling.
This commit is contained in:
parent
2007543c98
commit
3857700ea0
3 changed files with 8 additions and 8 deletions
|
@ -79,8 +79,8 @@
|
|||
.map(([key]) => key)
|
||||
}
|
||||
|
||||
function save(data) {
|
||||
environment.createVariable(data)
|
||||
async function save(data) {
|
||||
await environment.createVariable(data)
|
||||
config[selectedKey] = `{{ env.${data.name} }}`
|
||||
createVariableModal.hide()
|
||||
}
|
||||
|
|
|
@ -171,8 +171,8 @@
|
|||
}
|
||||
}
|
||||
|
||||
const save = data => {
|
||||
environment.createVariable(data)
|
||||
const save = async data => {
|
||||
await environment.createVariable(data)
|
||||
form.basic[formFieldkey] = `{{ env.${data.name} }}`
|
||||
createVariableModal.hide()
|
||||
}
|
||||
|
|
|
@ -22,9 +22,9 @@
|
|||
let developmentValue
|
||||
let useProductionValue = true
|
||||
|
||||
const deleteVariable = name => {
|
||||
const deleteVariable = async name => {
|
||||
try {
|
||||
environment.deleteVariable(name)
|
||||
await environment.deleteVariable(name)
|
||||
modalContext.hide()
|
||||
notifications.success("Environment variable deleted")
|
||||
} catch (err) {
|
||||
|
@ -32,9 +32,9 @@
|
|||
}
|
||||
}
|
||||
|
||||
const saveVariable = () => {
|
||||
const saveVariable = async () => {
|
||||
try {
|
||||
save({
|
||||
await save({
|
||||
name,
|
||||
production: productionValue,
|
||||
development: developmentValue,
|
||||
|
|
Loading…
Reference in a new issue