Don't show mark reviewed button when all items are in progress (#11636)

* Don't show mark reviewed button when all items are in progress

* Fix unknown preview file
This commit is contained in:
Nicolas Mowen
2024-05-29 18:54:56 -06:00
committed by GitHub
parent 4135cabf58
commit ec88752666
2 changed files with 7 additions and 2 deletions

View File

@@ -588,7 +588,7 @@ function DetectionReview({
<Skeleton key={idx} className="aspect-video size-full" />
))}
{!loading &&
(currentItems?.length ?? 0) > 0 &&
(currentItems?.filter((seg) => seg.end_time)?.length ?? 0) > 0 &&
(itemsToReview ?? 0) > 0 && (
<div className="col-span-full flex items-center justify-center">
<Button