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 DmytroAlipov committed Oct 14, 2024
1 parent 8809f4c commit 83e2257
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 83e2257

Please sign in to comment.