diff options
| author | 2026-01-14 04:59:37 +0000 | |
|---|---|---|
| committer | 2026-01-14 04:59:37 +0000 | |
| commit | b2a25fe989314fcbea4ddb7f50cb17b3414418c2 (patch) | |
| tree | 0838f73c2b63860e1f3af4d246ec1d9f9cd169d4 | |
| parent | 11a604f7e03d1a6f1b4ad381fdcf0ccaef440cff (diff) | |
| download | DropOut-b2a25fe989314fcbea4ddb7f50cb17b3414418c2.tar.gz DropOut-b2a25fe989314fcbea4ddb7f50cb17b3414418c2.zip | |
fix: ensure selectedVersion is reset when no installed versions are found
| -rw-r--r-- | ui/src/stores/game.svelte.ts | 2 |
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); |