Skip to content

Commit

Permalink
feat: ✨ Create fallback for empty changelog on app release entries
Browse files Browse the repository at this point in the history
Created a fallback for when a release entry has no changelog. Now it shows a "No release information provided" text on the accordion item.
  • Loading branch information
rique223 committed Jun 29, 2022
1 parent c665e15 commit 80f582b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/meteor/client/views/admin/apps/ReleaseItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ const ReleaseItem = ({ release, key, ...props }: ReleaseItemProps): JSX.Element

return (
<Accordion.Item key={key} title={title} {...props}>
{release.detailedChangelog?.rendered && <Box dangerouslySetInnerHTML={{ __html: release.detailedChangelog?.rendered }} />}
{release.detailedChangelog?.rendered ? (
<Box dangerouslySetInnerHTML={{ __html: release.detailedChangelog?.rendered }} />
) : (
'No release information provided'
)}
</Accordion.Item>
);
};
Expand Down

0 comments on commit 80f582b

Please sign in to comment.