feat(question-bank): extend source options to include 'rag-ai' for AI-generated questions

This commit is contained in:
2026-04-09 17:20:43 -04:00
parent f2f9cef0e7
commit f74f94d005
4 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ import MySQLImportModal from '@/components/QuestionBank/MySQLImportModal';
const isMySqlOrigin = (source?: string) => source === 'imported-mysql' || source === 'sam-diagnostico';
const isMaterialsOrigin = (source?: string) => source === 'imported-material';
const isAiOrigin = (source?: string) => source === 'ai-generated';
const isAiOrigin = (source?: string) => source === 'ai-generated' || source === 'rag-ai';
const toSafeText = (value: unknown): string => {
if (value === null || value === undefined) return '';