Chore/cleanup warnings (#17974)

This commit is contained in:
crazywoola
2025-04-14 11:27:14 +08:00
committed by GitHub
parent f84832e0c2
commit 8f9cbe1c49
69 changed files with 89 additions and 117 deletions

View File

@@ -184,7 +184,7 @@ const EmbeddingProcess: FC<Props> = ({ datasetId, batchId, documents = [], index
await sleep(2500)
await startQueryStatus()
}
catch (e) {
catch {
await sleep(2500)
await startQueryStatus()
}

View File

@@ -40,7 +40,7 @@ const EmptyDatasetCreationModal = ({
onHide()
router.push(`/datasets/${dataset.id}/documents`)
}
catch (err) {
catch {
notify({ type: 'error', message: t('datasetCreation.stepOne.modal.failed') })
}
}

View File

@@ -130,7 +130,7 @@ const JinaReader: FC<Props> = ({
},
}
}
}, [crawlOptions.limit])
}, [crawlOptions.limit, onCheckedCrawlResultChange])
const handleRun = useCallback(async (url: string) => {
const { isValid, errorMsg } = checkValid(url)
@@ -186,7 +186,7 @@ const JinaReader: FC<Props> = ({
finally {
setStep(Step.finished)
}
}, [checkValid, crawlOptions, onJobIdChange, t, waitForCrawlFinished])
}, [checkValid, crawlOptions, onCheckedCrawlResultChange, onJobIdChange, t, waitForCrawlFinished])
return (
<div>