mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Make related links conditional
This commit is contained in:
parent
ab2291da01
commit
7bac725d64
1 changed files with 2 additions and 1 deletions
|
|
@ -3,8 +3,9 @@ const {
|
|||
listing
|
||||
} = Astro.props
|
||||
|
||||
const hasRelatedLinks = Array.isArray(listing.relatedLinks)
|
||||
---
|
||||
{ listing.relatedLinks.map( (link, i) => {
|
||||
{ hasRelatedLinks && listing.relatedLinks.map( (link, i) => {
|
||||
|
||||
const notAppTestLink = !link.label.includes('🧪')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue