console: fix download route async handling

This commit is contained in:
Dax Raad 2025-12-11 16:55:23 -05:00
parent 9d4ed5b04a
commit 6f8746ab94

View file

@ -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