Fix issue when exporting apps

This commit is contained in:
Andrew Kingston 2021-05-26 14:58:24 +01:00
parent 1256b01275
commit 9e89881396
1 changed files with 2 additions and 1 deletions

View File

@ -104,9 +104,10 @@
}
const exportApp = app => {
const id = app.deployed ? app.prodId : app.devId
try {
download(
`/api/backups/export?appId=${app.appId}&appname=${encodeURIComponent(
`/api/backups/export?appId=${id}&appname=${encodeURIComponent(
app.name
)}`
)