aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/src/stores
diff options
context:
space:
mode:
authorNatsuu <natsukawa247@outlook.com>2026-01-14 04:59:37 +0000
committerNatsuu <natsukawa247@outlook.com>2026-01-14 04:59:37 +0000
commitb2a25fe989314fcbea4ddb7f50cb17b3414418c2 (patch)
tree0838f73c2b63860e1f3af4d246ec1d9f9cd169d4 /ui/src/stores
parent11a604f7e03d1a6f1b4ad381fdcf0ccaef440cff (diff)
downloadDropOut-b2a25fe989314fcbea4ddb7f50cb17b3414418c2.tar.gz
DropOut-b2a25fe989314fcbea4ddb7f50cb17b3414418c2.zip
fix: ensure selectedVersion is reset when no installed versions are found
Diffstat (limited to 'ui/src/stores')
-rw-r--r--ui/src/stores/game.svelte.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/src/stores/game.svelte.ts b/ui/src/stores/game.svelte.ts
index 3128cc6..f66cc71 100644
--- a/ui/src/stores/game.svelte.ts
+++ b/ui/src/stores/game.svelte.ts
@@ -35,6 +35,8 @@ export class GameState {
// Fallback to just the first ID if not in manifest
this.selectedVersion = this.installedVersionIds[0];
}
+ } else {
+ this.selectedVersion = "";
}
} catch (e) {
console.error("Failed to fetch versions:", e);