🚑 Fix 'enabled_modules' is null on event creation
Tim Izzo tim@5ika.ch
Mon, 19 Feb 2024 09:44:46 +0100
1 files changed,
3 insertions(+),
1 deletions(-)
M
frontend/containers/Travel/index.tsx
→
frontend/containers/Travel/index.tsx
@@ -24,7 +24,9 @@ }
const Travel = (props: Props) => { const {travel} = props; - const isCarosterPlus = useEventStore(s => s.event.enabled_modules.includes('caroster-plus')); + const isCarosterPlus = useEventStore(s => + s.event.enabled_modules?.includes('caroster-plus') + ); const { userPermissions: {canDeletePassenger, canJoinTravels, canAddToTravel}, } = usePermissions();