Fix DOT intake section visibility — read slug from wizard data attribute
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
8ce9e2e118
commit
ee4ea70beb
1 changed files with 4 additions and 2 deletions
|
|
@ -267,8 +267,10 @@
|
||||||
function showRelevantSections() {
|
function showRelevantSections() {
|
||||||
const PW = (window as any).PWIntake;
|
const PW = (window as any).PWIntake;
|
||||||
const state = PW.get();
|
const state = PW.get();
|
||||||
// Get all service slugs in this batch
|
// Get service slug from wizard element or state
|
||||||
const slugs: string[] = state.batch_slugs || [state.service_slug || ""];
|
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
|
// Collect all sections to show
|
||||||
const show = new Set<string>();
|
const show = new Set<string>();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue