Skip to content

Commit

Permalink
Ran prettier to fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
louisg1337 committed Jul 11, 2024
1 parent e7c3d0f commit efcdf3c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions www/js/diary/timelineHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit efcdf3c

Please sign in to comment.