mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-20 14:54:15 +01:00
(fix) machine list bug : when there is no user logged in and access machines list with at least one machine associated to a space
This commit is contained in:
parent
1068aff9cc
commit
ddadfca9ff
@ -7,6 +7,7 @@
|
||||
- Fix a bug: fix back button on space edit page
|
||||
- Fix a bug: fix members tour (help), a selector was not valid anymore
|
||||
- Fix a bug: unable to save OpenID extra_authorize_params as json
|
||||
- Fix machine list bug : when there is no user logged in and access machines list with at least one machine associated to a space
|
||||
|
||||
## v6.1.2 2023 October 2
|
||||
|
||||
|
@ -58,7 +58,7 @@ const MachineCard: React.FC<MachineCardProps> = ({ user, machine, onShowMachine,
|
||||
return (
|
||||
<div className={`machine-card ${loading ? 'loading' : ''} ${machine.disabled ? 'disabled' : ''} ${!machine.reservable ? 'unreservable' : ''}`}>
|
||||
{machinePicture()}
|
||||
{machine.space && user.role === 'admin' && <FabBadge icon='pin-map' iconWidth='3rem' /> }
|
||||
{machine.space && user && user.role === 'admin' && <FabBadge icon='pin-map' iconWidth='3rem' /> }
|
||||
<div className="machine-name">
|
||||
{machine.name}
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user