Skip to content

Commit

Permalink
Fix line disappearing after changing data
Browse files Browse the repository at this point in the history
  • Loading branch information
cdauth committed May 20, 2024
1 parent 2386332 commit c715bc1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion leaflet/src/lines/lines-layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ export default class LinesLayer extends FeatureGroup {
return !this.hiddenLinesIds.has(line.id) && !!this.filterResults.get(line.id);
}

protected handleLine = (line: Line): void => {
protected handleLine = (line_: Line): void => {
// Line from event doesn't have track points
const line = this.client.lines[line_.id];

this.recalculateFilter(line);

if(this.shouldShowLine(line))
Expand Down

0 comments on commit c715bc1

Please sign in to comment.