diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index 33ba2a6..be1832f 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -119,11 +119,12 @@ }) : draft(); // The session already produced the processed PNGs: the calibration - // inventory PNG in results.inventoryPng and each sibling's in - // results.batchApply (parallel to s.batch). Attach them as - // processedBlob so the server upload carries real images (PUBLISH-40). + // inventory PNG in results.inventoryPng, and each sibling's in + // batchApply (a sibling of results on the measure state, parallel to + // s.batch). Attach them as processedBlob so the server upload carries + // real images (PUBLISH-40). const calIdx = s.calibrationIndex; - const apply = results?.batchApply; + const apply = s.capture.k === 'measure' ? s.capture.batchApply : null; // slab_photos.id is a global primary key, so the id must be unique // across slabs - key it on the slab id, not just the index/size. const photos = s.batch.map((source, i) => ({