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();