From 64d4ea15335f472453e6c61bf53261f141fc7174 Mon Sep 17 00:00:00 2001 From: Dean Date: Tue, 26 Apr 2022 12:32:08 +0100 Subject: [PATCH] Correction for deployment application references. --- .../src/components/deploy/DeployNavigation.svelte | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/builder/src/components/deploy/DeployNavigation.svelte b/packages/builder/src/components/deploy/DeployNavigation.svelte index 448acb34dc..ded75652cc 100644 --- a/packages/builder/src/components/deploy/DeployNavigation.svelte +++ b/packages/builder/src/components/deploy/DeployNavigation.svelte @@ -58,13 +58,13 @@ const viewApp = () => { analytics.captureEvent(Events.APP.VIEW_PUBLISHED, { - appId: application.appId, + appId: selectedApp.appId, eventSource: EventSource.PORTAL, }) - if (application.url) { - window.open(`/app${application.url}`) + if (selectedApp.url) { + window.open(`/app${selectedApp.url}`) } else { - window.open(`/${application.prodId}`) + window.open(`/${selectedApp.prodId}`) } } @@ -80,9 +80,9 @@ } try { analytics.captureEvent(Events.APP.UNPUBLISHED, { - appId: application.appId, + appId: selectedApp.appId, }) - await API.unpublishApp(application.prodId) + await API.unpublishApp(selectedApp.prodId) await apps.load() notifications.success("App unpublished successfully") } catch (err) {