mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 03:14:03 +03:00
Made "Preview" link only visible if recommendations are enabled
refs https://github.com/TryGhost/Product/issues/3816
This commit is contained in:
parent
d00f437cf2
commit
76778a9dd8
@ -45,7 +45,7 @@ const Recommendations: React.FC<{ keywords: string[] }> = ({keywords}) => {
|
||||
];
|
||||
|
||||
const groupDescription = (
|
||||
<>Share favorite sites with your audience after they subscribe. <Link href={recommendationsURL} target='_blank'>Preview</Link></>
|
||||
<>Share favorite sites with your audience after they subscribe. {(recommendations && recommendations.length > 0) && <Link href={recommendationsURL} target='_blank'>Preview</Link>}</>
|
||||
);
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user