From 3a60535564194ddef65db732ae052e938b5d5fbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Wed, 29 Apr 2026 15:22:12 -0500 Subject: [PATCH] fix: null rendering Co-authored-by: Copilot --- .../src/pages/[...locale]/tanks/[slug]/_index.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/website-ue/src/pages/[...locale]/tanks/[slug]/_index.tsx b/packages/website-ue/src/pages/[...locale]/tanks/[slug]/_index.tsx index 75a68b965..862b1fb8e 100644 --- a/packages/website-ue/src/pages/[...locale]/tanks/[slug]/_index.tsx +++ b/packages/website-ue/src/pages/[...locale]/tanks/[slug]/_index.tsx @@ -159,10 +159,13 @@ function Content() { return toy: {item.toy}; } + const value = characteristics[item.name]; + + if (value == null) return null; + return ( - {item.name}:{" "} - {renderCharacteristic(characteristics[item.name], item)} + {item.name}: {renderCharacteristic(value, item)} ); })}