diff --git a/website/src/components/broadcast/roots/BracketOverlay.vue b/website/src/components/broadcast/roots/BracketOverlay.vue index b5b98c1c..2eccdc0d 100644 --- a/website/src/components/broadcast/roots/BracketOverlay.vue +++ b/website/src/components/broadcast/roots/BracketOverlay.vue @@ -41,6 +41,11 @@ export default { if (this.broadcast?.bracket_key) key = this.broadcast.bracket_key; if (this.bracketKey) key = this.bracketKey; + if ((!key || key === "match") && this.liveMatch) { + console.log("Cockers"); + key = this.liveMatch.brackets[0].key; + } + if (!key) return this.event.brackets[0]; const bracket = this.event.brackets.find(b => b && b.key === key); return bracket || this.event.brackets[0]; @@ -52,7 +57,8 @@ export default { liveMatch() { if (!this.broadcast?.live_match) return null; return ReactiveRoot(this.broadcast.live_match[0], { - teams: ReactiveArray("teams") + teams: ReactiveArray("teams"), + brackets: ReactiveArray("brackets") }); }, highlightMatch() {