From 64ddc1c69be8a2c47d523e33006beb4621cf7ee6 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Tue, 25 Jul 2023 13:40:30 +0200 Subject: [PATCH] Fix FightEdit --- src/components/FightEditPart.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/FightEditPart.svelte b/src/components/FightEditPart.svelte index c8592f8..c9f71b9 100644 --- a/src/components/FightEditPart.svelte +++ b/src/components/FightEditPart.svelte @@ -5,8 +5,8 @@ import type {Team} from '../types/team.js'; export let teams: Team[] = []; - export let blueTeam = ""; - export let redTeam = ""; + export let blueTeam: string; + export let redTeam: string; export let start = ""; export let gamemode = ""; export let map = ""; @@ -24,7 +24,7 @@ $: selectableTeams = teams.map(team => { return { name: team.name, - value: team.id + value: team.id.toString() } }).sort((a, b) => a.name.localeCompare(b.name));