Skip to content

Commit

Permalink
CORE: fix page render issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ekachxaidze98 committed Nov 14, 2024
1 parent 0f3f570 commit 8b01714
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions templates/search/results.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}}
Expand Down

0 comments on commit 8b01714

Please sign in to comment.