From 2a1994587099847fcb4c308006f02651da133692 Mon Sep 17 00:00:00 2001 From: slhale Date: Fri, 28 Aug 2015 15:34:17 -0700 Subject: [PATCH] [Search] Fix maxResults vs maxNumber Typo fix in generic search. #91. --- platform/search/src/services/GenericSearchWorker.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/search/src/services/GenericSearchWorker.js b/platform/search/src/services/GenericSearchWorker.js index 469dfbf895..1681f9d749 100644 --- a/platform/search/src/services/GenericSearchWorker.js +++ b/platform/search/src/services/GenericSearchWorker.js @@ -139,9 +139,9 @@ } }); - // Truncate results if there are more than maxResults - if (message.total > data.maxResults) { - message.results = results.slice(0, data.maxResults); + // Truncate results if there are more than maxNumber + if (message.total > data.maxNumber) { + message.results = results.slice(0, data.maxNumber); } else { message.results = results; }