mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-28 18:36:23 +02:00
refactor: use descriptive variable names for useQuery destructuring in SourceDetailSheet
This commit is contained in:
parent
013bb1547d
commit
9bff7a619f
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ export function SourceDetailSheet({
|
|||
const [summaryOpen, setSummaryOpen] = useState(false);
|
||||
|
||||
// Add useQuery to fetch document by chunk
|
||||
const { data: queryDocument, isLoading: queryLoading, error: queryError } = useQuery({
|
||||
const { data: documentFromChunkQuery, isLoading: isLoadingDocumentFromChunk, error: documentFetchError } = useQuery({
|
||||
queryKey: cacheKeys.documents.byChunk(chunkId.toString()),
|
||||
queryFn: () => documentsApiService.getDocumentByChunk({ chunk_id: chunkId }),
|
||||
enabled: !!chunkId && open,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue