Skip to content

Commit

Permalink
remove console debug
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaskabc authored and ledsoft committed Jul 26, 2024
1 parent af1ee4c commit 0a3e9af
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/component/annotator/AnnotatorTermsSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@ const AnnotatorTermsSelector: React.FC<AnnotatorTermsSelectorProps> = ({
(state: TermItState) => state
);

const options = useMemo(() => {
console.debug("memo");
return processTermsForTreeSelect(
Utils.mapToArray(annotatorTerms),
[createTermNonTerminalStateMatcher(terminalStates)],
{ flattenAncestors: true }
);
}, [annotatorTerms, terminalStates]);
const options = useMemo(
() =>
processTermsForTreeSelect(
Utils.mapToArray(annotatorTerms),
[createTermNonTerminalStateMatcher(terminalStates)],
{ flattenAncestors: true }
),
[annotatorTerms, terminalStates]
);

React.useEffect(() => {
if (autoFocus) {
Expand Down

0 comments on commit 0a3e9af

Please sign in to comment.