mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
correct filtering
This commit is contained in:
1 parent
cbf320454f
commit
5d4e0541b2
2 files changed
+2
-4
No files matched your search
@@ -23,7 +23,7 @@ export function TankopediaCharacteristics({
|
||||
<div className={styles.characteristics}>
|
||||
{characteristicsGroups.map((group) => {
|
||||
const items = group.order.filter(
|
||||
(item) => "name" in item && characteristics[item.name] !== null,
|
||||
(item) => "name" in item && item.name in characteristics,
|
||||
).length;
|
||||
const shouldRender = items > 0;
|
||||
|
||||
|
||||
@@ -62,9 +62,7 @@ export const Page = withErrorWrapper(
|
||||
|
||||
<div className={styles.sandbox}>
|
||||
{!skeleton && <TankopediaSandbox thicknessRange={thicknessRange} />}
|
||||
<TankopediaCharacteristics
|
||||
computedCharacteristics={characteristics}
|
||||
/>
|
||||
<TankopediaCharacteristics characteristics={characteristics} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user