From 8b017144156beb3cae0b342d3791fc6369f5fd9a Mon Sep 17 00:00:00 2001 From: ekachxaidze98 Date: Thu, 14 Nov 2024 12:36:54 +0400 Subject: [PATCH] CORE: fix page render issue --- templates/search/results.jsx | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/templates/search/results.jsx b/templates/search/results.jsx index f0ea1bc..96256ae 100644 --- a/templates/search/results.jsx +++ b/templates/search/results.jsx @@ -90,17 +90,13 @@ const Results = ({ works, searchId }) => metadataLink: generateMetadataLink(metadataLink, searchId, id) || generateMetadataLink(displayLink, searchId, id), - fullTextLink: - !window.location.search.includes('author') && - !window.location.pathname.includes('data-providers') - ? renderFullTextLink({ - fullTextLink, - downloadLink, - modifiedReaderLink, - searchId, - id, - }) - : fullTextLink || readerLink || downloadLink, + fullTextLink: renderFullTextLink({ + fullTextLink, + downloadLink, + modifiedReaderLink, + searchId, + id, + }), dataProviders: dataProviders || [], isRecommended: memberType?.billing_type === 'sustaining', }}