From c083a05f8ca30b78346dd63b666127bde5d4e9a1 Mon Sep 17 00:00:00 2001 From: Azalea Colburn Date: Wed, 13 Nov 2024 18:03:21 -0800 Subject: [PATCH] fix: actions display on timeline --- src/lib/components/Action.svelte | 18 ++++++++---------- src/lib/components/Timeline.svelte | 2 +- src/routes/scout/+page.svelte | 3 +-- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/src/lib/components/Action.svelte b/src/lib/components/Action.svelte index 1e4f9ec..1a5a1be 100644 --- a/src/lib/components/Action.svelte +++ b/src/lib/components/Action.svelte @@ -1,15 +1,13 @@ @@ -23,5 +21,5 @@ class="{actionBackgroundColor} w-full p-1 rounded border-2 border-outline_gray text-text_white" onclick={deleteself} > - {action.type} + {action_data.action} diff --git a/src/lib/components/Timeline.svelte b/src/lib/components/Timeline.svelte index ecaefee..de4c097 100644 --- a/src/lib/components/Timeline.svelte +++ b/src/lib/components/Timeline.svelte @@ -8,7 +8,7 @@ {#each actions as _, i} { actions.splice(actions.indexOf(actions[i]), 1); }} diff --git a/src/routes/scout/+page.svelte b/src/routes/scout/+page.svelte index 07694bb..ddf130b 100644 --- a/src/routes/scout/+page.svelte +++ b/src/routes/scout/+page.svelte @@ -11,7 +11,6 @@ let actions: AutoActionData[] = $state([]); let timelineExtended = $state(false); - let latestActions: AutoActionData[] = $state([]); const match: TeamMatch = $state({ id: 0, @@ -31,7 +30,7 @@

Team {team_key}

{#if timelineExtended}
- +