Fix: Project banners aren't showing in collections (#1562)

* Add featured image

* Use find method

* Fix lint error

* ...

* Fix

* Fix lint error
This commit is contained in:
Mysterious_Dev 2024-01-18 17:56:14 +01:00 committed by GitHub
parent d2f189607e
commit ec6e1704be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -284,6 +284,7 @@
:description="project.description"
:downloads="project.downloads ? project.downloads.toString() : '0'"
:follows="project.followers ? project.followers.toString() : '0'"
:featured-image="project.gallery.find((element) => element.featured)?.url"
:icon-url="project.icon_url"
:name="project.title"
:client-side="project.client_side"