Skip to content

Commit

Permalink
Merge pull request #1658 from guardian/mob/no-open-form-warnings-reci…
Browse files Browse the repository at this point in the history
…pe-chef-feast-collection

Suppress open form warnings on recipe, chef and feast collection cards
  • Loading branch information
JustinPinner authored Sep 25, 2024
2 parents 2681597 + 39e1b93 commit b11a4f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fronts-client/src/components/card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class Card extends React.Component<CardContainerProps> {
{...getNodeProps()}
onDelete={this.onDelete}
onAddToClipboard={this.handleAddToClipboard}
onClick={isUneditable ? undefined : () => onSelect(uuid)}
/* No need for an OnClick here - there are no editable forms */
size={size}
textSize={textSize}
showMeta={showMeta}
Expand All @@ -258,7 +258,7 @@ class Card extends React.Component<CardContainerProps> {
{...getNodeProps()}
onDelete={this.onDelete}
onAddToClipboard={this.handleAddToClipboard}
onClick={isUneditable ? undefined : () => onSelect(uuid)}
/* No need for an OnClick here - there are no editable forms */
size={size}
textSize={textSize}
showMeta={showMeta}
Expand Down

0 comments on commit b11a4f5

Please sign in to comment.