From 1500666bbe5d64aa04c5831e672378eea81e35a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20ud=C3=A9n?= Date: Fri, 10 Nov 2023 13:14:17 +0100 Subject: [PATCH] Fix team editor being weird --- ReactUI/src/components/tables/editor/TeamEditorTable.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ReactUI/src/components/tables/editor/TeamEditorTable.tsx b/ReactUI/src/components/tables/editor/TeamEditorTable.tsx index 893390b..4be3406 100644 --- a/ReactUI/src/components/tables/editor/TeamEditorTable.tsx +++ b/ReactUI/src/components/tables/editor/TeamEditorTable.tsx @@ -17,9 +17,9 @@ export default function TeamEditorTable({ showMetadata, disableInputs }: Props) useEffect(() => { const handleChange = (data: TeamEditorEntry[]) => { - console.log("Change event"); - console.log(data); - setPlayers(data); + //console.log("Change event"); + //console.log(data); + setPlayers(data.map(p => p)); } teamEditor.tournamentSystem.events.on(Events.TEAM_EDITOR_UPDATE, handleChange);