Skip to content

Commit

Permalink
fix: response with corrupted attached file
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Alipov authored and Dima Alipov committed Mar 21, 2024
1 parent 59a7d07 commit 7cc6ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/FilePreview/Banners/ErrorBanner.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const ErrorBanner = ({ actions, headingMessage, children }) => {
return (
<Alert variant="danger" icon={Info} actions={actionButtons}>
<Alert.Heading>
<FormattedMessage {...headingMessage} />
{headingMessage ? <FormattedMessage {...headingMessage} /> : null}
</Alert.Heading>
{children}
</Alert>
Expand Down

0 comments on commit 7cc6ea5

Please sign in to comment.