Skip to content

Commit

Permalink
Issue #490: fix optional truncate
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzov96 committed Jun 26, 2023
1 parent 446016d commit df011d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function ResultTextContent<E>({
result,
path,
isTruncate = true,
}: HighlightableTextProps<E> & { isTruncate: boolean }) {
}: HighlightableTextProps<E> & { isTruncate?: boolean }) {
const hihglithTextLines = result.highlight[path];
const text = get(result.source, path);
return (
Expand Down

0 comments on commit df011d9

Please sign in to comment.