1
0
Fork 0
mirror of synced 2024-08-13 00:51:22 +12:00

Correction for deployment application references.

This commit is contained in:
Dean 2022-04-26 12:32:08 +01:00
parent 8b8baf9bdd
commit 64d4ea1533

View file

@ -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) {