From 5d4e0541b270231c5b678e48e5f24cf42b0140f1 Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Wed, 30 Sep 2026 18:41:22 -0500 Subject: [PATCH] correct filtering --- .../src/components/TankopediaCharacteristics/index.tsx | 2 +- .../[...chunk_default]/[...locale]/tanks/[slug]/_index.tsx | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/website/src/components/TankopediaCharacteristics/index.tsx b/packages/website/src/components/TankopediaCharacteristics/index.tsx index a502865fb..7fb72acfc 100644 --- a/packages/website/src/components/TankopediaCharacteristics/index.tsx +++ b/packages/website/src/components/TankopediaCharacteristics/index.tsx @@ -23,7 +23,7 @@ export function TankopediaCharacteristics({
{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; diff --git a/packages/website/src/pages/[...chunk_default]/[...locale]/tanks/[slug]/_index.tsx b/packages/website/src/pages/[...chunk_default]/[...locale]/tanks/[slug]/_index.tsx index b416d4608..a13ada0e9 100644 --- a/packages/website/src/pages/[...chunk_default]/[...locale]/tanks/[slug]/_index.tsx +++ b/packages/website/src/pages/[...chunk_default]/[...locale]/tanks/[slug]/_index.tsx @@ -62,9 +62,7 @@ export const Page = withErrorWrapper(
{!skeleton && } - +
);