From 5a2ce913c505bc99a8f100fd9b8b07631e73645e Mon Sep 17 00:00:00 2001 From: Sally McGrath Date: Thu, 5 Dec 2024 21:55:48 +0000 Subject: [PATCH] fix that annoying time bug on day plan --- common-theme/assets/scripts/time-stamper.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/common-theme/assets/scripts/time-stamper.js b/common-theme/assets/scripts/time-stamper.js index fb8766610..b50af460c 100644 --- a/common-theme/assets/scripts/time-stamper.js +++ b/common-theme/assets/scripts/time-stamper.js @@ -2,15 +2,12 @@ class TimeStamper extends HTMLElement { constructor() { super(); this.attachShadow({ mode: "open" }); - this.shadowRoot.innerHTML = ` - - - `; - - this.timelineEntries = this.querySelectorAll(".c-block"); - this.startTime = this.getAttribute('start-time'); + this.shadowRoot.innerHTML = ``; + + this.timelineEntries = this.querySelectorAll( + ".c-block:not(.is-nested .c-block)" + ); + this.startTime = this.getAttribute("start-time"); } connectedCallback() {