diff --git a/ts/image-occlusion/shapes/to-cloze.ts b/ts/image-occlusion/shapes/to-cloze.ts index 41120a491..1923dab6d 100644 --- a/ts/image-occlusion/shapes/to-cloze.ts +++ b/ts/image-occlusion/shapes/to-cloze.ts @@ -27,7 +27,7 @@ export function exportShapesToClozeDeletions(occludeInactive: boolean): { } }); - return { clozes, noteCount: shapes.length }; + return { clozes, noteCount: index }; } /** Gather all Fabric shapes, and convert them into BaseShapes or