1
0
Fork 0
mirror of synced 2024-07-15 11:15:59 +12:00

Some missing async handling.

This commit is contained in:
mike12345567 2023-01-30 17:03:20 +00:00
parent 2007543c98
commit 3857700ea0
3 changed files with 8 additions and 8 deletions

View file

@ -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()
}

View file

@ -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()
}

View file

@ -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,