diff --git a/components/forms/Form.tsx b/components/forms/Form.tsx index e6724d79..d7e84607 100644 --- a/components/forms/Form.tsx +++ b/components/forms/Form.tsx @@ -188,7 +188,7 @@ export default function Form(props: FormProps) { const elements = []; - // console.log(`Block: ${rowCount}x${colCount}: ${block.flat().map(e => e.key).join(", ")}`); + //console.log(`Block: ${rowCount}x${colCount}: ${block.flat().map(e => e.key).join(", ")}`); for (let r = 0; r < rowCount; r++) { for (let c = 0; c < colCount; c++) { let topRounding = "", diff --git a/components/stats/SmallGraph.tsx b/components/stats/SmallGraph.tsx index 5cf038ed..02bcd9d8 100644 --- a/components/stats/SmallGraph.tsx +++ b/components/stats/SmallGraph.tsx @@ -103,11 +103,7 @@ export default function SmallGraph(props: { }; useEffect(() => { - if ( - !props.selectedReports || - (datapoints && currentTeam === props.team && false) - ) - return; + if (!props.selectedReports) return; setDataPoints([]); setCurrentTeam(props.team); @@ -126,7 +122,7 @@ export default function SmallGraph(props: { ); }); } - }, [key, currentTeam, datapoints, props.selectedReports, props.team]); + }, [key, currentTeam, props.selectedReports, props.team]); if (!props.selectedReports) { return <>; @@ -141,13 +137,9 @@ export default function SmallGraph(props: { console.log(e.target.value); setKey(e.target.value); }} + defaultValue={"selected"} > - + {keys.map((key) => (