console: fix download route async handling
This commit is contained in:
parent
9d4ed5b04a
commit
6f8746ab94
@ -26,7 +26,9 @@ function CopyStatus() {
|
||||
}
|
||||
|
||||
export default function Download() {
|
||||
const release = createAsync(() => getLatestRelease())
|
||||
const release = createAsync(() => getLatestRelease(), {
|
||||
deferStream: true,
|
||||
})
|
||||
const download = () => {
|
||||
const version = release()
|
||||
if (!version) return null
|
||||
|
||||
Loading…
Reference in New Issue
Block a user