Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix picture text card display error with missing picture #672

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

petrjasek
Copy link
Member

@petrjasek petrjasek commented Nov 27, 2023

CPCN-488

Checklist

  • This pull request is not adding new forms that use redux
  • This pull request is adding missing TypeScript types to modified code segments where it's easy to do so with confidence
  • This pull request is replacing lodash.get with optional chaining for modified code segments

@petrjasek petrjasek added this to the v2.6 milestone Nov 27, 2023

const getPictureTextPanel = (item: any, picture: any, openItem: any, withPictures: any, cardId: any, listConfig: any) => {
const rendition = withPictures && getThumbnailRendition(picture);
const getPictureTextPanel = (item: any, picture: IArticle | null, openItem: any, withPictures: boolean, cardId: any, listConfig: any) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we could also have types for the other arguments here.

  • item: IArticle;
  • openItem(IArticle, string): void;
  • cardId: string;
  • listConfig: IListConfig

@petrjasek petrjasek merged commit a4d1ace into superdesk:develop Nov 28, 2023
7 checks passed
@petrjasek petrjasek deleted the fix-picture-text-card branch November 28, 2023 09:44
@petrjasek petrjasek modified the milestones: v2.6, v2.5.1 Nov 28, 2023
petrjasek added a commit that referenced this pull request Nov 28, 2023
* fix picture text card display error with missing picture

CPCN-488

* add missing types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants