1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-18 07:52:23 +01:00

[bug] unable to open some modals when the logo was undefined

This commit is contained in:
Sylvain 2021-06-24 12:40:41 +02:00
parent 522df1ccd7
commit 4c313d180b
2 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@
- Fix a bug: unable to export members list if no subscriptions was taken
- Fix a bug: most OpenAPI endpoints were dysfunctional
- Fix a bug: unable to open some modals when the logo was undefined
## v5.0.6 2021 June 21

View File

@ -74,8 +74,8 @@ export const FabModal: React.FC<FabModalProps> = ({ title, isOpen, toggleModal,
onRequestClose={toggleModal}>
<div className="fab-modal-header">
<Loader>
<img src={blackLogo.custom_asset_file_attributes.attachment_url}
alt={blackLogo.custom_asset_file_attributes.attachment}
<img src={blackLogo?.custom_asset_file_attributes?.attachment_url}
alt={blackLogo?.custom_asset_file_attributes?.attachment}
className="modal-logo" />
</Loader>
<h1>{ title }</h1>