diff --git a/src/routes/termSearch.ts b/src/routes/termSearch.ts index 40048b4..cb6c5be 100644 --- a/src/routes/termSearch.ts +++ b/src/routes/termSearch.ts @@ -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) : []; }) ) );