From 9e8988139693e96ed065f0f8ba634deb7cc9f260 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 26 May 2021 14:58:24 +0100 Subject: [PATCH] Fix issue when exporting apps --- packages/builder/src/pages/builder/portal/apps/index.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/pages/builder/portal/apps/index.svelte b/packages/builder/src/pages/builder/portal/apps/index.svelte index 9802d5ec36..ac588cdf7d 100644 --- a/packages/builder/src/pages/builder/portal/apps/index.svelte +++ b/packages/builder/src/pages/builder/portal/apps/index.svelte @@ -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 )}` )