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 }) },