fix(renderers): hide alternative name card on extra ordinary vessels detail
This commit is contained in:
parent
98efd5899d
commit
bd847d1c3b
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue