diff --git a/ui-ngx/src/app/modules/home/components/ai/ai-action.models.ts b/ui-ngx/src/app/modules/home/components/ai/ai-action.models.ts index 7c7ecb33cf..1a1606d08d 100644 --- a/ui-ngx/src/app/modules/home/components/ai/ai-action.models.ts +++ b/ui-ngx/src/app/modules/home/components/ai/ai-action.models.ts @@ -241,7 +241,8 @@ export function aiQuestionsOf(args: unknown): AiQuestion[] { .slice(0, 6) .map(option => ({label: option.label.trim(), hint: typeof option.hint === 'string' ? option.hint : undefined})), recommended: Array.isArray(question.recommended) ? question.recommended.filter(label => typeof label === 'string') : undefined, - multiple: question.multiple === true + multiple: question.multiple === true, + secret: question.secret === true && !(Array.isArray(question.options) && question.options.length) })); } diff --git a/ui-ngx/src/app/modules/home/components/ai/ai-question.component.html b/ui-ngx/src/app/modules/home/components/ai/ai-question.component.html index f348f69429..408c696d4f 100644 --- a/ui-ngx/src/app/modules/home/components/ai/ai-question.component.html +++ b/ui-ngx/src/app/modules/home/components/ai/ai-question.component.html @@ -15,7 +15,7 @@ @for (item of answers; track item.question.id) {