This commit is contained in:
2025-12-04 17:20:45 +01:00
parent 834d4f641b
commit d06fc133e7
16 changed files with 44 additions and 69 deletions
@@ -145,7 +145,7 @@ const useDocumentDragHandlers = ({
let thumbWidth = size;
let thumbHeight = size;
if (Number.isFinite(aspectRatio) && aspectRatio > 0) {
if (aspectRatio > 0) {
if (aspectRatio >= 1) {
thumbWidth = size;
thumbHeight = Math.max(size / aspectRatio, size * 0.5);
@@ -267,7 +267,7 @@ const useDocumentTagging = ({
},
);
const payload = 'data' in response ? response.data : response;
const queued = Number.isFinite(payload?.queued)
const queued = payload?.queued != null
? Number(payload.queued)
: targetIds.length;
setStatusMessage(