From f36ae5e4aa8dd0d9d41e69ddbd52236b89e5a427 Mon Sep 17 00:00:00 2001 From: Artyom Zaporozhets Date: Sat, 20 Sep 2025 13:34:52 +0300 Subject: [PATCH] fix absent velocities --- src/components/ui/catalog-data.tsx | 37 +++++++++++++++++++----------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/src/components/ui/catalog-data.tsx b/src/components/ui/catalog-data.tsx index ee2c0a4..02f560a 100644 --- a/src/components/ui/catalog-data.tsx +++ b/src/components/ui/catalog-data.tsx @@ -103,8 +103,8 @@ export function CatalogData({ } if (catalogs?.velocity) { - data.push( - { + if (catalogs.velocity.heliocentric?.v !== undefined) { + data.push({ Parameter: "Heliocentric Velocity", Value: ( ), - }, - { + }); + } + + if (catalogs.velocity.local_group?.v !== undefined) { + data.push({ Parameter: "Local Group Velocity", Value: ( ), - }, - { + }); + } + + if (catalogs.velocity.cmb_old?.v !== undefined) { + data.push({ Parameter: "CMB (old) Velocity", Value: ( ), - }, - { + }); + } + + if (catalogs.velocity.cmb?.v !== undefined) { + data.push({ Parameter: "CMB Velocity", Value: ( ), - }, - ); + }); + } } return ;