mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-30 23:48:28 +01:00
Ignore advertized items which are undefined (#23374)
* Ignore advertized items which are undefined * Build and update tgui --------- Co-authored-by: Arthri <41360489+a@users.noreply.github.com> Co-authored-by: tgui <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Arthri
tgui <41898282+github-actions[bot]@users.noreply.github.com>
parent
292c4451f9
commit
74c85eec6d
@@ -246,11 +246,14 @@ const Advert = (_properties, context) => {
|
||||
}
|
||||
>
|
||||
<Box display="flex" flexWrap="wrap" mb="5px">
|
||||
{lucky_numbers.map((number, index) => (
|
||||
<Flex.Item flexShrink={0} key={index} p="0.5%" width="49%">
|
||||
<UplinkItem grow i={cats[number.cat].items[number.item]} />
|
||||
</Flex.Item>
|
||||
))}
|
||||
{lucky_numbers
|
||||
.map((number) => cats[number.cat].items[number.item])
|
||||
.filter((item) => item !== undefined && item !== null)
|
||||
.map((item, index) => (
|
||||
<Flex.Item flexShrink={0} key={index} p="0.5%" width="49%">
|
||||
<UplinkItem grow i={item} />
|
||||
</Flex.Item>
|
||||
))}
|
||||
</Box>
|
||||
</Section>
|
||||
);
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user