make sure await is prior to .length
This commit is contained in:
parent
70104b33ac
commit
f3bb3b4408
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue