diff --git a/assets/js/propagation_map_hook.js b/assets/js/propagation_map_hook.js index f8118768..dc8c9923 100644 --- a/assets/js/propagation_map_hook.js +++ b/assets/js/propagation_map_hook.js @@ -680,6 +680,14 @@ export const PropagationMap = { return } + // Hide timeline if all times are within 1 hour (no real forecast spread) + const firstDt = new Date(this.timelineData[0].time) + const lastDt = new Date(this.timelineData[this.timelineData.length - 1].time) + if (lastDt - firstDt < 3600000) { + this.timelineEl.style.display = "none" + return + } + const now = new Date() const items = this.timelineData.map((t, idx) => { const dt = new Date(t.time)