Chore/cleanup warnings (#17974)
This commit is contained in:
parent
f84832e0c2
commit
8f9cbe1c49
69 changed files with 89 additions and 117 deletions
|
|
@ -193,7 +193,7 @@ const EmbeddingDetail: FC<IEmbeddingDetailProps> = ({
|
|||
await sleep(2500)
|
||||
await startQueryStatus()
|
||||
}
|
||||
catch (e) {
|
||||
catch {
|
||||
await sleep(2500)
|
||||
await startQueryStatus()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ const DocumentDetail: FC<Props> = ({ datasetId, documentId }) => {
|
|||
params: { metadata: 'without' },
|
||||
})
|
||||
|
||||
const { data: documentMetadata, error: metadataErr, refetch: metadataMutate } = useDocumentMetadata({
|
||||
const { data: documentMetadata } = useDocumentMetadata({
|
||||
datasetId,
|
||||
documentId,
|
||||
params: { metadata: 'only' },
|
||||
|
|
@ -146,7 +146,6 @@ const DocumentDetail: FC<Props> = ({ datasetId, documentId }) => {
|
|||
}
|
||||
|
||||
const isDetailLoading = !documentDetail && !error
|
||||
const isMetadataLoading = !documentMetadata && !metadataErr
|
||||
|
||||
const embedding = ['queuing', 'indexing', 'paused'].includes((documentDetail?.display_status || '').toLowerCase())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue