From a087d23d0e1d873e6150429e6a16c3775bcadf5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?James=20Cu=C3=A9nod?= <4253884+jcuenod@users.noreply.github.com> Date: Thu, 20 Jun 2024 22:12:45 -0500 Subject: [PATCH] Update termSearch.ts Return empty array rather than null --- src/routes/termSearch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) : []; }) ) );