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

Merged
amit merged 2 commits from fix/remove-eov-alt-name into main 2026-10-26 08:28:01 +00:00
1 changed files with 5 additions and 1 deletions
Showing only changes of commit bd847d1c3b - Show all commits

View File

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