diff --git a/src/components/search/utils.js b/src/components/search/utils.js index e71a5637b..64587df21 100644 --- a/src/components/search/utils.js +++ b/src/components/search/utils.js @@ -11,5 +11,7 @@ export const getSearchLink = ({ searchTerm = "", advancedDataQuery = "" }) => { }; export const extractTotal = (result) => { - return result?.total?.value || result?.total; + return typeof result?.total === "object" + ? result?.total?.value + : result?.total; };