From 624c077490c5b7f120d8370c85e436ec4397ca7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9di-R=C3=A9mi=20Hashim?= Date: Fri, 6 Aug 2021 09:27:03 +0100 Subject: [PATCH] fix: use overriden core app versions --- src/components/AppsList/AppsList.js | 2 +- src/pages/CoreApps/CoreApps.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/AppsList/AppsList.js b/src/components/AppsList/AppsList.js index f236ae71..ec12582f 100644 --- a/src/components/AppsList/AppsList.js +++ b/src/components/AppsList/AppsList.js @@ -16,7 +16,7 @@ const AppCards = ({ apps }) => { return } history.push( - app.version ? `/installed-app/${app.key}` : `/app/${app.appHub.id}` + app.appHub ? `/app/${app.appHub.id}` : `/installed-app/${app.key}` ) } diff --git a/src/pages/CoreApps/CoreApps.js b/src/pages/CoreApps/CoreApps.js index e4a534d6..c8c2310e 100644 --- a/src/pages/CoreApps/CoreApps.js +++ b/src/pages/CoreApps/CoreApps.js @@ -81,6 +81,7 @@ export const CoreApps = () => { if (!(app.short_name in appsByShortName)) { appsByShortName[app.short_name] = app } + appsByShortName[app.short_name].version = app.version }) const apps = Object.values(appsByShortName) const appsWithUpdates = apps.filter(