fix: fix type issue in releaseName parsing (#1043)

This commit is contained in:
Stefan Dej 2022-08-23 23:35:52 +02:00 committed by GitHub
parent 24d5668a65
commit 14f6799489
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -220,7 +220,7 @@ export default class SystemPanelHost extends Mixins(BaseMixin) {
}
get releaseName() {
let name = this.hostStats.release_info?.name ?? null
let name = this.hostStats.release_info?.name ?? ''
if (name.startsWith('#')) return this.hostStats.release_info?.id ?? null
if (name.startsWith('0.')) return null