From c92dfd53d954738622985fafd24f7bf637fd58b4 Mon Sep 17 00:00:00 2001 From: Axolotle Date: Thu, 8 Oct 2020 14:09:02 +0200 Subject: [PATCH] fixed SystemUpdate system value & fixed AppInstall check for root path --- app/src/views/app/AppInstall.vue | 4 ++-- app/src/views/update/SystemUpdate.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/views/app/AppInstall.vue b/app/src/views/app/AppInstall.vue index 9b0cc1ba..99350bc1 100644 --- a/app/src/views/app/AppInstall.vue +++ b/app/src/views/app/AppInstall.vue @@ -148,8 +148,8 @@ export default { }, beforeInstall () { - const path = this.form.args.find(arg => arg.props.id === 'path').props.value - if (path === '/') { + const path = this.form.args.find(arg => arg.props.id === 'path') + if (path && path.props.value === '/') { this.confirmDomain = this.form.args.find(arg => arg.props.id === 'domain').props.value this.$refs['confirm-domain-root-modal'].show() } else { diff --git a/app/src/views/update/SystemUpdate.vue b/app/src/views/update/SystemUpdate.vue index 6baa5a82..407efd8f 100644 --- a/app/src/views/update/SystemUpdate.vue +++ b/app/src/views/update/SystemUpdate.vue @@ -117,8 +117,8 @@ export default { performUpdate () { api.put('update').then(({ apps, system }) => { - this.apps = apps.length !== 0 ? apps : null - this.system = system.length !== 0 ? apps : null + this.apps = apps.length ? apps : null + this.system = system.length ? system : null }) },