Fix IDE warnings

This commit is contained in:
Peter 2024-11-09 11:43:57 -06:00
parent 3f2b2869ca
commit 1bc05eccc0

View File

@ -36,7 +36,7 @@
</tr>
</thead>
<tbody id="career-batting-table">
<tr v-for="stat in sortedRegularAndPostSeasonBatting">
<tr v-for="stat in sortedRegularAndPostSeasonBatting" :key="`${stat.seasonNumber}-${stat.isRegularSeason}`">
<td>S{{ stat.seasonNumber }}{{ stat.isRegularSeason ? '' : ' / Playoffs' }}</td>
<td>{{ stat.pa }}</td>
<td>{{ stat.ab }}</td>
@ -67,7 +67,7 @@
</tr>
</tbody>
<tfoot>
<tr v-for="(stat, idx) in careerBattingStats">
<tr v-for="(stat, idx) in careerBattingStats" :key="idx">
<th>Career{{ idx > 0 ? ' / Playoffs' : '' }}</th>
<th>{{ stat.pa }}</th>
<th>{{ stat.ab }}</th>
@ -112,7 +112,7 @@ interface BattingStatWithSeason extends BattingStat {
}
export default {
name: "PlayerCareerBattingTable",
name: 'PlayerCareerBattingTable',
props: {
regularSeasonBattingStats: { type: Array<BattingStat>, required: true },
postSeasonBattingStats: { type: Array<BattingStat>, required: true },