make sure await is prior to .length

This commit is contained in:
Taras Greben 2026-06-26 14:53:45 +03:00
commit f3bb3b4408

View file

@ -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();
}