🛠️ Add safe navigation operator to handle potential null profiles in project card component

This commit is contained in:
HolgerHatGarKeineNode
2026-01-06 21:07:25 +01:00
parent eb7d090ad3
commit a1dd16cf65

View File

@@ -30,7 +30,7 @@
src="{{ $project->getFirstMediaUrl('main') }}" alt="Meetup 01">
<button class="absolute top-0 right-0 mt-4 mr-4">
<img class="rounded-full h-8 w-8"
src="{{ $project->einundzwanzigPleb->profile->picture ?? asset('einundzwanzig-alpha.jpg') }}"
src="{{ $project->einundzwanzigPleb->profile?->picture ?? asset('einundzwanzig-alpha.jpg') }}"
alt="">
</button>
</a>
@@ -42,7 +42,7 @@
src="{{ $project->getFirstMediaUrl('main') }}" alt="Meetup 01">
<button class="absolute top-0 right-0 mt-4 mr-4">
<img class="rounded-full h-8 w-8"
src="{{ $project->einundzwanzigPleb->profile->picture ?? asset('einundzwanzig-alpha.jpg') }}"
src="{{ $project->einundzwanzigPleb->profile?->picture ?? asset('einundzwanzig-alpha.jpg') }}"
alt="">
</button>
</div>