fix: null quiz crash in admin candidate show - load attempts.quiz withoutGlobalScopes + null guard in Vue template

This commit is contained in:
jeremy bayse
2026-04-14 19:49:12 +02:00
parent e93a17f324
commit c74d8e14ec
2 changed files with 14 additions and 4 deletions

View File

@@ -818,7 +818,7 @@ const runAI = async () => {
</div>
</div>
<div>
<h4 class="text-xl font-black uppercase tracking-tight">{{ attempt.quiz.title }}</h4>
<h4 class="text-xl font-black uppercase tracking-tight">{{ attempt.quiz?.title ?? 'Quiz supprimé' }}</h4>
<div class="text-xs text-slate-400 mt-1 uppercase font-bold tracking-widest">
Fini le {{ formatDateTime(attempt.finished_at) }}
</div>