Skip to content

Commit 80012e1

Browse files
committed
added unique react keys, need to fix state change upon time jump
1 parent 29d39b7 commit 80012e1

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

src/app/components/BarGraphComparison.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ const BarGraphComparison = props => {
7979
const [maxRender, setMaxRender] = React.useState(data.maxTotalRender);
8080

8181
function titleFilter(comparisonArray) {
82-
// const comparisonArrayModded = comparisonArray[0];
83-
console.log('titleFilter', comparisonArray);
8482
return comparisonArray.filter(
8583
elem => elem.title.split('-')[1] === tabs[currentTab].title.split('-')[1],
8684
);
@@ -121,9 +119,6 @@ const BarGraphComparison = props => {
121119
// with the render time of the current tab.
122120
// The max render time will determine the Y-axis's highest number.
123121
const calculateMaxTotalRender = series => {
124-
console.log(comparison)
125-
console.log(series)
126-
// let currentMax = 5
127122
const currentSeriesBarStacks = !comparison[series]
128123
? []
129124
: comparison[series].data.barStack;
@@ -244,7 +239,6 @@ const BarGraphComparison = props => {
244239
if (testList[i] !== "" && !finalList.includes(testList[i])) finalList.push(testList[i]);
245240
}
246241
console.log('Final List', finalList)
247-
// )
248242

249243
return (
250244
<div>

src/app/components/LinkControls.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export default function LinkControls({
118118
/>
119119
<datalist id='nodeOptions'>
120120
{nodeList.map(node => (
121-
<option value={node.name}>{node.name}</option>
121+
<option key={node.name} value={node.name}>{node.name}</option>
122122
))}
123123
</datalist>
124124

src/app/components/RenderingFrequency.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const RenderingFrequency = props => {
1414
const currentComponent = perfData[componentName];
1515
return (
1616
<ComponentCard
17+
key={componentName}
1718
componentName={componentName}
1819
stateType={currentComponent.stateType}
1920
averageRenderTime={(

0 commit comments

Comments
 (0)