From ee4ea70beb8b74ae026eeca9da97fea067b974a8 Mon Sep 17 00:00:00 2001 From: justin Date: Sat, 30 May 2026 15:25:02 -0500 Subject: [PATCH] =?UTF-8?q?Fix=20DOT=20intake=20section=20visibility=20?= =?UTF-8?q?=E2=80=94=20read=20slug=20from=20wizard=20data=20attribute?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- site/src/components/intake/steps/DOTIntakeStep.astro | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/site/src/components/intake/steps/DOTIntakeStep.astro b/site/src/components/intake/steps/DOTIntakeStep.astro index a9eefc2..4bd9c9d 100644 --- a/site/src/components/intake/steps/DOTIntakeStep.astro +++ b/site/src/components/intake/steps/DOTIntakeStep.astro @@ -267,8 +267,10 @@ function showRelevantSections() { const PW = (window as any).PWIntake; const state = PW.get(); - // Get all service slugs in this batch - const slugs: string[] = state.batch_slugs || [state.service_slug || ""]; + // Get service slug from wizard element or state + const wizardEl = document.querySelector(".pw-wizard[data-service]"); + const pageSlug = wizardEl?.getAttribute("data-service") || ""; + const slugs: string[] = state.batch_slugs || [pageSlug || state.service_slug || ""]; // Collect all sections to show const show = new Set();