mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
fix osUpdate check and address parser for Tor without protocol (#2941)
This commit is contained in:
@@ -54,10 +54,12 @@ export class OSService {
|
||||
serverId: id,
|
||||
})
|
||||
|
||||
const [latest, _] = Object.entries(this.osUpdate).at(-1)!
|
||||
const latest = Object.entries(this.osUpdate).at(-1)?.[0]
|
||||
|
||||
this.updateAvailable$.next(
|
||||
Version.parse(latest).compare(Version.parse(version)) === 'greater',
|
||||
latest
|
||||
? Version.parse(latest).compare(Version.parse(version)) === 'greater'
|
||||
: false,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user