From 2e0ed3b2c37bf42dc61f1edc2ff8298f7ff8720c Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Mon, 3 Nov 2025 10:10:05 -0700 Subject: [PATCH] Fixes --- src/routes/launcher/versions.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/routes/launcher/versions.ts b/src/routes/launcher/versions.ts index 3301a58..849c322 100644 --- a/src/routes/launcher/versions.ts +++ b/src/routes/launcher/versions.ts @@ -42,11 +42,15 @@ export async function handler(context: Context, db: MySql2Database) { downloadUrls: JSON.parse(v.downloadUrls), platforms: JSON.parse(v.platforms), executables: JSON.parse(v.executables), - downloadUrl: null as string | null, - executable: null as string | null + downloadUrl: undefined as string | undefined, + executable: undefined as string | undefined })) .filter(v => { - if (showAll) return true + if (showAll) { + delete v.downloadUrl + delete v.executable + return true + } const i = v.platforms.indexOf(platString) if (i !== -1) { v.downloadUrl = v.downloadUrls[i]