fix(renderers): hide alternative name card on extra ordinary vessels detail

This commit is contained in:
ShivaniKhaire 2026-10-26 11:33:15 +05:30
parent 98efd5899d
commit bd847d1c3b
1 changed files with 5 additions and 1 deletions

View File

@ -29,6 +29,8 @@ const RESERVED_KEYS = new Set([
"title",
"sub_title",
"subtitle",
"alt_name",
"alternative_names",
"code",
"sort_order",
"link",
@ -61,7 +63,9 @@ export function ExtraOrdinaryVesselsDetailRenderer({
const subtitle =
asString(data.sub_title) ||
asString(data.subtitle) ||
undefined;
(asStringArray(data.alt_name).length > 0
? asStringArray(data.alt_name).join(", ")
: undefined);
const mediaValue = data.images ?? data.media ?? data.point_images;
const media = Array.isArray(mediaValue)