Skip to content

Commit

Permalink
CORE: fix page render issue (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekachxaidze98 authored Nov 14, 2024
1 parent 0f3f570 commit 3e08585
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 3e08585

Please sign in to comment.