Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix(journey): the photo-location switch marks its save as unawaited

Maurice8d684b48ccac
diff --git a/client/src/components/Journey/JourneyDetailPageSettingsDialog.tsx b/client/src/components/Journey/JourneyDetailPageSettingsDialog.tsx
index f723e4228..c26741b55 100644
--- a/client/src/components/Journey/JourneyDetailPageSettingsDialog.tsx
+++ b/client/src/components/Journey/JourneyDetailPageSettingsDialog.tsx
@@ -325,7 +325,7 @@ export function JourneySettingsDialog({ journey, onClose, onSaved, onOpenInvite,
</span>
<ToggleSwitch
on={!!journey.photo_location}
- onToggle={() => { if (!savingPhotoLocation) handlePhotoLocationToggle() }}
+ onToggle={() => { if (!savingPhotoLocation) void handlePhotoLocationToggle() }}
label={t('journey.settings.photoLocation')}
/>
</div>