From 4801430ad20ef2b18e5e11ac7800aa6db42854ca Mon Sep 17 00:00:00 2001 From: Athanasios Oikonomou Date: Sat, 3 May 2025 08:02:00 +0300 Subject: [PATCH] fix: correct condition for Docling OCR engine and language validation Both must have value or both must be empty. --- src/lib/components/admin/Settings/Documents.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/admin/Settings/Documents.svelte b/src/lib/components/admin/Settings/Documents.svelte index ad7d46f47..fcc5afe44 100644 --- a/src/lib/components/admin/Settings/Documents.svelte +++ b/src/lib/components/admin/Settings/Documents.svelte @@ -163,7 +163,7 @@ } if ( RAGConfig.CONTENT_EXTRACTION_ENGINE === 'docling' && - (RAGConfig.DOCLING_OCR_ENGINE === '' || RAGConfig.DOCLING_OCR_LANG === '') + (RAGConfig.DOCLING_OCR_ENGINE !== '' || RAGConfig.DOCLING_OCR_LANG !== '') ) { toast.error($i18n.t('Docling OCR Engine and Language(s) required.')); return;