diff --git a/src/main/webapp/src/pages/competition/editor/ScoreAndCardPanel.jsx b/src/main/webapp/src/pages/competition/editor/ScoreAndCardPanel.jsx index be41709..053ff58 100644 --- a/src/main/webapp/src/pages/competition/editor/ScoreAndCardPanel.jsx +++ b/src/main/webapp/src/pages/competition/editor/ScoreAndCardPanel.jsx @@ -74,7 +74,8 @@ function ScorePanel_({matchId, matchs, match, menuActions, onClickVoid_, vEnd}) lastScoreClick.current = {matchId: matchId, round: maxRound, comb}; } else { const score = match.scores.find(s => s.n_round === round); - setScoreIn((comb === 1 ? score?.s1 : score?.s2) || ""); + const tmp= (comb === 1 ? score?.s1 : score?.s2) + setScoreIn((tmp === -1000 ? "" : tmp) || ""); lastScoreClick.current = {matchId: matchId, round, comb}; setTimeout(() => inputRef.current.select(), 100); } @@ -165,7 +166,7 @@ function ScorePanel_({matchId, matchs, match, menuActions, onClickVoid_, vEnd}) return () => { document.removeEventListener("mousedown", handleClickOutside); }; - }, []); + }, [matchId, match]); const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]') const o = [...tooltipTriggerList]