Skip to content

Commit

Permalink
Fixes #2043 - Trace title doesn't match the planned route name when a…
Browse files Browse the repository at this point in the history
…dding a trace to the map
  • Loading branch information
HarelM committed Oct 20, 2024
1 parent a9e3c61 commit 4a2f2b8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ export class TracesDialogComponent implements OnInit {

public async addTraceToRoutes() {
const trace = await this.tracesService.getTraceById(this.selectedTraceId);
if (trace.dataContainer.routes.length === 1) {
trace.dataContainer.routes[0].name = this.getTraceDisplayName(trace) || trace.name;
trace.dataContainer.routes[0].description = trace.name;
}
this.dataContainerService.setData(trace.dataContainer, true);
}

Expand Down

0 comments on commit 4a2f2b8

Please sign in to comment.