From efcdf3ceebb8efd68d3cfa390f92c1e4f885d3b8 Mon Sep 17 00:00:00 2001 From: louisg1337 Date: Thu, 11 Jul 2024 12:28:17 -0400 Subject: [PATCH] Ran prettier to fix error --- www/js/diary/timelineHelper.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/www/js/diary/timelineHelper.ts b/www/js/diary/timelineHelper.ts index ea165ec8a..2cd80df55 100644 --- a/www/js/diary/timelineHelper.ts +++ b/www/js/diary/timelineHelper.ts @@ -42,7 +42,8 @@ export function useGeojsonForTrip(trip: CompositeTrip, baseMode?: string) { return cachedGeojsons.get(gjKey); } - const trajectoryColor = (baseMode && base_mode_colors.get_base_mode_by_key(baseMode)?.color) || undefined; + const trajectoryColor = + (baseMode && base_mode_colors.get_base_mode_by_key(baseMode)?.color) || undefined; logDebug("Reading trip's " + trip.locations.length + ' location points at ' + new Date()); const features = [ @@ -266,7 +267,10 @@ function locations2GeojsonTrajectory( style: { /* If a color was passed as arg, use it for the whole trajectory. Otherwise, use the color for the sensed mode of this section, and fall back to dark grey */ - color: trajectoryColor || base_mode_colors.get_base_mode_by_key(section?.sensed_mode_str)?.color || '#333', + color: + trajectoryColor || + base_mode_colors.get_base_mode_by_key(section?.sensed_mode_str)?.color || + '#333', }, properties: { feature_type: 'section_trajectory',