From 8fcb8312a3eb7f17489112383a2e488998f16503 Mon Sep 17 00:00:00 2001 From: Josh Wright Date: Fri, 9 Oct 2026 16:36:03 -0400 Subject: [PATCH] Remove unused launch-from-recipe dialog path (Refs #91) --- .../ui/components/DeployServerDialog.svelte | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/src/lib/ui/components/DeployServerDialog.svelte b/src/lib/ui/components/DeployServerDialog.svelte index fc56f33..1b4711b 100644 --- a/src/lib/ui/components/DeployServerDialog.svelte +++ b/src/lib/ui/components/DeployServerDialog.svelte @@ -13,12 +13,10 @@ let { open = $bindable(false), - sourceDeploymentId = '', initialGame = 't5', initialMapSlug = '' }: { open?: boolean; - sourceDeploymentId?: string; initialGame?: ZombieGame; initialMapSlug?: string; } = $props(); @@ -144,26 +142,6 @@ const body = await response.json(); if (current !== visit) return; catalogs = { t5: body.t5Zombie, t6: body.t6Zombie }; - if (sourceDeploymentId) { - const sourceResponse = await fetch( - `/api/provisioning/${encodeURIComponent(sourceDeploymentId)}`, - { signal } - ); - const source = await sourceResponse.json(); - if (current !== visit) return; - if ( - !sourceResponse.ok || - !source.recipe || - !['t5', 't6'].includes(source.recipe.game) || - !catalogs[source.recipe.game as ZombieGame].some( - (map) => map.slug === source.recipe.mapSlug - ) - ) { - throw new Error('The original launch map is unavailable.'); - } - game = source.recipe.game; - mapSlug = source.recipe.mapSlug; - } if (!catalogs[game].some((map) => map.slug === mapSlug)) mapSlug = catalogs[game][0]?.slug ?? ''; loaded = true;