From ac0e05eefa24aad2d90f661a33ede9c65c0fa33c Mon Sep 17 00:00:00 2001
From: mehekj <mehek.jethani@gmail.com>
Date: Tue, 3 May 2022 17:06:35 -0400
Subject: fixed make text note from ink transcription with word subgroupings

---
 src/client/views/InkTranscription.tsx | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'src/client/views/InkTranscription.tsx')

diff --git a/src/client/views/InkTranscription.tsx b/src/client/views/InkTranscription.tsx
index 7e26b51a0..3892f4cbb 100644
--- a/src/client/views/InkTranscription.tsx
+++ b/src/client/views/InkTranscription.tsx
@@ -172,7 +172,7 @@ export class InkTranscription extends React.Component {
     }
 
     subgroupsTranscriptions = async (wordInkDocMap: Map<string, Doc[]>) => {
-         // 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
+        // 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
         // loop through the words in wordInkDocMap
         // for each word, get the inkDocs
 
@@ -217,7 +217,7 @@ export class InkTranscription extends React.Component {
             }
 
             // set the vals for bounds in marqueeView
-           
+
             selected.map(action(d => {
                 const dx = NumCast(d.x);
                 const dy = NumCast(d.y);
@@ -235,7 +235,7 @@ export class InkTranscription extends React.Component {
                 }
                 return d;
             }));
-            
+
             docView.props.removeDocument?.(selected);
             // // TODO: nda - this is the code to actually get a new grouped collection
             const newCollection = marqViewRef?.getCollection(selected, undefined, [], true);
@@ -272,7 +272,7 @@ export class InkTranscription extends React.Component {
                     const timestampWord = new Map<number, string>();
                     this.lastJiix.words.map((word: any) => {
                         if (word.items) {
-                            word.items.forEach((i: {id: string, timestamp: string, X: Array<number>, Y: Array<number>, F: Array<number>}) => {
+                            word.items.forEach((i: { id: string, timestamp: string, X: Array<number>, Y: Array<number>, F: Array<number> }) => {
                                 const ms = Date.parse(i.timestamp);
                                 timestampWord.set(ms, word.label);
                             })
@@ -318,7 +318,7 @@ export class InkTranscription extends React.Component {
 
                 if (this.currGroup) {
                     console.log("curr grouping");
-                    this.currGroup.text = text;
+                    this.currGroup.transcription = text;
                     this.currGroup.title = text.split("\n")[0];
                 }
 
-- 
cgit v1.2.3-70-g09d2

