From 61aebfd603b58d0cec3fbfa035d5ee6d74e7d9ed Mon Sep 17 00:00:00 2001 From: Antoine Jeanneney <29945628+ajeanneney@users.noreply.github.com> Date: Mon, 25 Nov 2024 17:44:46 +0100 Subject: [PATCH] fix checkist display for sentences (#151) Co-authored-by: Antoine Jeanneney --- .../AnnotationsPanel/useChecklistEntryHandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/generic/client/src/pages/Home/DocumentAnnotator/AnnotationsPanel/useChecklistEntryHandler.ts b/packages/generic/client/src/pages/Home/DocumentAnnotator/AnnotationsPanel/useChecklistEntryHandler.ts index d617c535..0f4f5e55 100644 --- a/packages/generic/client/src/pages/Home/DocumentAnnotator/AnnotationsPanel/useChecklistEntryHandler.ts +++ b/packages/generic/client/src/pages/Home/DocumentAnnotator/AnnotationsPanel/useChecklistEntryHandler.ts @@ -83,7 +83,7 @@ function useChecklistEntryHandler({ content.some((chunk) => { if (chunk.type === 'text') { return ( - chunk.content.index <= sentence.start && chunk.content.index + chunk.content.text.length >= sentence.end + sentence.end > chunk.content.index && sentence.start < chunk.content.index + chunk.content.text.length ); } }),