mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 13:55:19 +00:00
fix: correct condition for Docling OCR engine and language validation
Both must have value or both must be empty.
This commit is contained in:
parent
657162e96d
commit
4801430ad2
1 changed files with 1 additions and 1 deletions
|
|
@ -163,7 +163,7 @@
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
RAGConfig.CONTENT_EXTRACTION_ENGINE === 'docling' &&
|
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.'));
|
toast.error($i18n.t('Docling OCR Engine and Language(s) required.'));
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue