diff options
Diffstat (limited to 'web/pw-server/src/routes/index.svelte')
-rw-r--r-- | web/pw-server/src/routes/index.svelte | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/pw-server/src/routes/index.svelte b/web/pw-server/src/routes/index.svelte index 984910e..055112a 100644 --- a/web/pw-server/src/routes/index.svelte +++ b/web/pw-server/src/routes/index.svelte @@ -128,6 +128,8 @@ return timestamp.toFormat("dd/MM"); } } + + $: selectedMatch = matches.find((m) => m["id"] === selectedMatchId); </script> <div class="container"> @@ -165,7 +167,7 @@ </div> <div class="editor-container"> {#if viewMode === ViewMode.MatchVisualizer} - <Visualizer matchLog={selectedMatchLog} /> + <Visualizer matchData={selectedMatch} matchLog={selectedMatchLog} /> {:else if viewMode === ViewMode.Editor} <EditorView {editSession} /> {:else if viewMode === ViewMode.Rules} |