From 45a753e0d6e812cd5653e9f0343bda5a1f231157 Mon Sep 17 00:00:00 2001 From: Naafiyan Ahmed Date: Mon, 2 May 2022 14:31:28 -0400 Subject: mapping working for ink strokes --- src/client/views/InkTranscription.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/client/views/InkTranscription.tsx b/src/client/views/InkTranscription.tsx index dd365e1ab..b1f807bdf 100644 --- a/src/client/views/InkTranscription.tsx +++ b/src/client/views/InkTranscription.tsx @@ -192,12 +192,12 @@ export class InkTranscription extends React.Component { }) }) - const wordInkDocMap = new Map(); if (this.currGroup) { const docList = DocListCast(this.currGroup.data) docList.forEach((inkDoc: Doc) => { - const ms = DateCast(inkDoc.creationDate).getDate().getTime(); + // just having the times match up and be a unique value (actual timestamp doesn't matter) + const ms = DateCast(inkDoc.creationDate).getDate().getTime() + 14400000; const word = timestampWord.get(ms); if (!word) { return; @@ -212,8 +212,6 @@ export class InkTranscription extends React.Component { } }); - console.log("getting here"); - console.log(wordInkDocMap); } // we can iterate through docs and for each doc index into the map by timestamp -- cgit v1.2.3-70-g09d2