mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-03 12:54:21 -04:00
Quick fix for isLocationIndexing (#1679)
Update useIsLocationIndexing.ts
This commit is contained in:
@@ -14,7 +14,7 @@ export const useIsLocationIndexing = (locationId: number): boolean => {
|
||||
const isLocationIndexing =
|
||||
jobGroups?.some((group) =>
|
||||
group.jobs.some((job) => {
|
||||
if (job.name === 'indexer' && job.metadata.location.id === locationId) {
|
||||
if (job.name === 'indexer' && job.metadata.location.id === locationId && (job.status === 'Running' || job.status === 'Queued')) {
|
||||
return job.completed_task_count === 0;
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user