Skip to content

Commit

Permalink
Fix team editor being weird
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonUden committed Nov 10, 2023
1 parent e672ed0 commit 1500666
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ReactUI/src/components/tables/editor/TeamEditorTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1500666

Please sign in to comment.