fix(gui): clear release info if there is no new release available

Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
This commit is contained in:
Pranav C
2021-07-21 13:48:11 +05:30
parent da6a316ce1
commit 7d79806cfd
4 changed files with 21 additions and 6 deletions

View File

@@ -66,6 +66,8 @@ export default async({ store, redirect, $axios, $toast }) => {
const releaseInfo = await store.dispatch('sqlMgr/ActSqlOp', [null, 'xcRelease'])
if (releaseInfo && releaseInfo.docker && releaseInfo.docker.upgrade) {
store.commit('app/MutReleaseVersion', releaseInfo.docker.name)
} else {
store.commit('app/MutReleaseVersion', null)
}
} catch (e) {
// ignore