aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-09-04 16:03:39 -0400
committerbobzel <zzzman@gmail.com>2023-09-04 16:03:39 -0400
commit33335801ee469d12a3c3a749c2452740faab4590 (patch)
treeb9b24527ea05d1a43fdb8a286114bc772dbcdc85
parent34a29cccdb65c6e2d4b1b4fd83c78a70cdfcb686 (diff)
fixed strokes reappearing after undoing when in write mode.
-rw-r--r--src/client/views/InkTranscription.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/views/InkTranscription.tsx b/src/client/views/InkTranscription.tsx
index 6c213f40f..258bfad66 100644
--- a/src/client/views/InkTranscription.tsx
+++ b/src/client/views/InkTranscription.tsx
@@ -260,7 +260,10 @@ export class InkTranscription extends React.Component {
CollectionFreeFormView.collectionsWithUnprocessedInk.forEach(ffView => {
// TODO: nda - will probably want to go through ffView unprocessed docs and then see if any of the inksToGroup docs are in it and only use those
const selected = ffView.unprocessedDocs;
- const newCollection = this.groupInkDocs(selected, ffView);
+ const newCollection = this.groupInkDocs(
+ selected.filter(doc => doc.embedContainer),
+ ffView
+ );
ffView.unprocessedDocs = [];
InkTranscription.Instance.transcribeInk(newCollection, selected, false);