Skip to content

Commit

Permalink
fix: whole string in KWIC dislpay
Browse files Browse the repository at this point in the history
  • Loading branch information
ctot-nondef committed Oct 1, 2024
1 parent f93ae75 commit 4b41011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/KWIC/KWICQueryDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const { data: KWICresults, status } = useQuery({
region: Tbl_refs![2] ?? "",
// @ts-expect-error wrong types in api lib
left: Left!.map(({ str, strc }) => str || strc).join(" "),
word: typeof Kwic![0] !== "undefined" ? Kwic!.reduce((a,b) => a + ' ' + b.str!, "") : "",
word: typeof Kwic![0] !== "undefined" ? Kwic!.reduce((a, b) => a + " " + b.str!, "") : "",
// @ts-expect-error wrong types in api lib
right: Right!.map(({ str }: { str: string }) => str).join(" "),
docid: Tbl_refs![0] ?? "",
Expand Down

0 comments on commit 4b41011

Please sign in to comment.