From f3bb3b440865b185f06dc05f2e2c6c69e5914b10 Mon Sep 17 00:00:00 2001 From: Taras Greben Date: Fri, 26 Jun 2026 14:53:45 +0300 Subject: [PATCH] make sure await is prior to .length --- docs/studio.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/studio.js b/docs/studio.js index 67a4a40..a59a96b 100644 --- a/docs/studio.js +++ b/docs/studio.js @@ -2487,7 +2487,7 @@ async function autoStitchNewImage(newId) { } finally { hideBusy(); // Refresh overlaps if we successfully matched anything - if (await db.getOverlapsForImage(newId).length > 0) { + if ((await db.getOverlapsForImage(newId)).length > 0) { await updateOverlapCache(); renderPins(); }