mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-05 15:52:55 +01:00
fix: keys
This commit is contained in:
1 parent
16c77f587a
commit
8bda4a5331
2 files changed
+9
-8
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { useMemo } from "react";
|
||||
import { Fragment, useMemo } from "react";
|
||||
import { TankopediaLoadout } from "../../../../components/TankopediaLoadout";
|
||||
import { api } from "../../../../core/api/dynamic";
|
||||
import { characteristicsOrder } from "../../../../core/tankopedia/characteristicsOrder";
|
||||
@@ -152,12 +152,12 @@ function Content() {
|
||||
|
||||
{characteristicsOrder.map((group) => {
|
||||
return (
|
||||
<>
|
||||
<Fragment key={group.group}>
|
||||
<h3>{group.group}</h3>
|
||||
|
||||
{group.order.map((item) => {
|
||||
if ("toy" in item) {
|
||||
return <span>toy: {item.toy}</span>;
|
||||
return <span key={`toy-${item.toy}`}>toy: {item.toy}</span>;
|
||||
}
|
||||
|
||||
const value = characteristics[item.name];
|
||||
@@ -165,12 +165,12 @@ function Content() {
|
||||
if (value == null) return null;
|
||||
|
||||
return (
|
||||
<span>
|
||||
<span key={`characteristic-${item.name}`}>
|
||||
{item.name}: {renderCharacteristic(value, item)}
|
||||
</span>
|
||||
);
|
||||
})}
|
||||
</>
|
||||
</Fragment>
|
||||
);
|
||||
})}
|
||||
</>
|
||||
|
||||
Reference in new issue
Block a user