diff options
author | Naafiyan Ahmed <naafiyan@gmail.com> | 2022-05-03 16:53:59 -0400 |
---|---|---|
committer | Naafiyan Ahmed <naafiyan@gmail.com> | 2022-05-03 16:53:59 -0400 |
commit | 48b4af3448d87b7a0ce8aa82a903c07c8b78c2b7 (patch) | |
tree | 0249fd1777b5023d21cf7fe3975da629055eaabf | |
parent | f66eefce84ce6a7c8c1fdf37f682238e65576ff6 (diff) |
removed unecessary async
-rw-r--r-- | src/client/views/InkTranscription.tsx | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/client/views/InkTranscription.tsx b/src/client/views/InkTranscription.tsx index fa753760a..9b8e822d7 100644 --- a/src/client/views/InkTranscription.tsx +++ b/src/client/views/InkTranscription.tsx @@ -171,8 +171,7 @@ export class InkTranscription extends React.Component { return max - min; } - 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 + subgroupsTranscriptions = (wordInkDocMap: Map<string, Doc[]>) => { // loop through the words in wordInkDocMap // for each word, get the inkDocs @@ -231,7 +230,6 @@ export class InkTranscription extends React.Component { })); docView.props.removeDocument?.(selected); - // // TODO: nda - this is the code to actually get a new grouped collection const newCollection = marqViewRef?.getCollection(selected, undefined, [], true); if (newCollection) { newCollection.height = newCollection[HeightSym](); @@ -292,16 +290,8 @@ export class InkTranscription extends React.Component { wordInkDocMap.set(word, newEntry); } }); - // do the fun marq stuff - // generate subgroups - - console.log(wordInkDocMap); this.subgroupsTranscriptions(wordInkDocMap); - } - // we can iterate through docs and for each doc index into the map by timestamp - - // final mapping should be word to inkDoc } const text = exports['text/plain']; // console.log(text); |