Fix batch count limit (#2039)

This commit is contained in:
bymyself
2024-12-24 08:12:38 -07:00
committed by GitHub
parent 653ed6f096
commit 96b2987590

View File

@@ -57,7 +57,7 @@ const handleClick = (increment: boolean) => {
let newCount: number
if (increment) {
const originalCount = batchCount.value - 1
newCount = originalCount * 2
newCount = Math.min(originalCount * 2, maxQueueCount.value)
} else {
const originalCount = batchCount.value + 1
newCount = Math.floor(originalCount / 2)