Skip to content

Commit

Permalink
Update termSearch.ts
Browse files Browse the repository at this point in the history
Return empty array rather than null
  • Loading branch information
jcuenod authored Jun 21, 2024
1 parent 34ab027 commit a087d23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/termSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const mapMatchingTextSearchResults: MapToTermSearchResponseFunction = (
const row = matchingText.find((row) =>
row.parallelId === parallelId && row.moduleId === moduleId
);
return row ? mapTextResult(row) : null;
return row ? mapTextResult(row) : [];
})
)
);
Expand Down

0 comments on commit a087d23

Please sign in to comment.