Skip to content

Commit

Permalink
fix(departments): sci club use cover as preview photo (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-the-shark committed Oct 1, 2024
1 parent f6eee3f commit ef8748d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ class _ScienceClubsList extends ConsumerWidget {
child: BigPreviewCard(
title: sciClub.name,
shortDescription: sciClub.shortDescription ?? "",
directusUrl: sciClub.logo?.filename_disk,
directusUrl: (sciClub.useCoverAsPreviewPhoto ?? false)
? sciClub.cover?.filename_disk
: sciClub.logo?.filename_disk,
onClick: () async => ref.navigateSciClubsDetail(sciClub.id),
),
);
Expand Down

0 comments on commit ef8748d

Please sign in to comment.