Skip to content

Commit

Permalink
CORE: remove prop (#717)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekachxaidze98 authored Nov 13, 2024
1 parent 404ea03 commit baf2a49
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/modules/search-result/search-result.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ const fullTextStatus = ({ title, fullTextLink } = {}) => {

const SearchResult = ({
renderRedirectLink,
renderKeys,
children,
id,
className,
Expand Down Expand Up @@ -158,7 +157,7 @@ const SearchResult = ({
>
<a
href={
renderRedirectLink || renderKeys
renderRedirectLink
? `/search?q=author:(${a.name})&t=${searchId}-${workId}`
: `/search?q=author:(${a.name})`
}
Expand Down Expand Up @@ -217,7 +216,7 @@ const SearchResult = ({
>
<Link
href={
renderRedirectLink || renderKeys
renderRedirectLink
? `/data-providers/${dataProvider.id}?t=${searchId}-${workId}`
: `/data-providers/${dataProvider.id}`
}
Expand All @@ -238,7 +237,6 @@ SearchResult.propTypes = {
searchId: PropTypes.string,
useLogo: PropTypes.bool,
renderRedirectLink: PropTypes.bool,
renderKeys: PropTypes.bool,
data: PropTypes.shape({
workId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
title: PropTypes.string,
Expand Down

0 comments on commit baf2a49

Please sign in to comment.