From 7424dd14e48f271a6c2c1815187557fed2777d70 Mon Sep 17 00:00:00 2001 From: Jonathon Herbert Date: Wed, 1 May 2024 16:05:11 +0100 Subject: [PATCH] Ensure recipe meta is not displayed in clipboard --- .../src/components/FrontsEdit/CollectionComponents/Card.tsx | 1 + fronts-client/src/components/card/recipe/RecipeCard.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/fronts-client/src/components/FrontsEdit/CollectionComponents/Card.tsx b/fronts-client/src/components/FrontsEdit/CollectionComponents/Card.tsx index 85401bf4463..e40c2f46420 100644 --- a/fronts-client/src/components/FrontsEdit/CollectionComponents/Card.tsx +++ b/fronts-client/src/components/FrontsEdit/CollectionComponents/Card.tsx @@ -218,6 +218,7 @@ class Card extends React.Component { onClick={isUneditable ? undefined : () => onSelect(uuid)} size={size} textSize={textSize} + showMeta={showMeta} /> {getSublinks} diff --git a/fronts-client/src/components/card/recipe/RecipeCard.tsx b/fronts-client/src/components/card/recipe/RecipeCard.tsx index 48f1b0d416e..70bef5e7dbc 100644 --- a/fronts-client/src/components/card/recipe/RecipeCard.tsx +++ b/fronts-client/src/components/card/recipe/RecipeCard.tsx @@ -46,7 +46,7 @@ export const RecipeCard = ({ isUneditable, collectionId, frontId, - showMeta, + showMeta = true, ...rest }: Props) => { const card = useSelector((state) => selectCard(state, id));