mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +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}>
|
<div className={styles.characteristics}>
|
||||||
{characteristicsGroups.map((group) => {
|
{characteristicsGroups.map((group) => {
|
||||||
const items = group.order.filter(
|
const items = group.order.filter(
|
||||||
(item) => "name" in item && characteristics[item.name] !== null,
|
(item) => "name" in item && item.name in characteristics,
|
||||||
).length;
|
).length;
|
||||||
const shouldRender = items > 0;
|
const shouldRender = items > 0;
|
||||||
|
|
||||||
|
|||||||
@@ -62,9 +62,7 @@ export const Page = withErrorWrapper(
|
|||||||
|
|
||||||
<div className={styles.sandbox}>
|
<div className={styles.sandbox}>
|
||||||
{!skeleton && <TankopediaSandbox thicknessRange={thicknessRange} />}
|
{!skeleton && <TankopediaSandbox thicknessRange={thicknessRange} />}
|
||||||
<TankopediaCharacteristics
|
<TankopediaCharacteristics characteristics={characteristics} />
|
||||||
computedCharacteristics={characteristics}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user