File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
MyApp/Components/Pages/Questions Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 7474 @foreach ( var model in AppConfig .GetActiveModelsForQuestionLevel (questionLevel ))
7575 {
7676 var assistant = AppConfig .GetModelUser (model .Model )! ;
77- <li class =" mb-2" >
78- <div class =" flex items-center gap-x-4" >
79- <img class =" h-10 w-10" src =" /avatar/@assistant.UserName" alt =" " >
80- <div >
81- <h3 class =" text-base font-semibold leading-6 tracking-tight text-gray-900 dark:text-gray-100" >@assistant.UserName </h3 >
82- <p class =" text-sm font-semibold leading-5 text-indigo-600 dark:text-indigo-300" >@assistant.DisplayName </p >
77+ if (assistant != null )
78+ {
79+ < li class = " mb-2" >
80+ < div class = " flex items-center gap-x-4" >
81+ < img class = " h-10 w-10" src = " /avatar/@assistant.UserName" alt = " " >
82+ < div >
83+ < h3 class = " text-base font-semibold leading-6 tracking-tight text-gray-900 dark:text-gray-100" > @assistant .UserName < / h3 >
84+ < p class = " text-sm font-semibold leading-5 text-indigo-600 dark:text-indigo-300" > @assistant .DisplayName < / p >
85+ < / div >
8386 < / div >
84- </div >
85- </ li >
87+ < / li >
88+ }
8689 }
8790 </ul >
8891 }
You can’t perform that action at this time.
0 commit comments