Skip to content

Commit

Permalink
Missing part popup buttons don't have colors #1939 - Fix selection is…
Browse files Browse the repository at this point in the history
…sues in that popup
  • Loading branch information
HarelM committed Aug 9, 2023
1 parent bd1b502 commit e0676b7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class TracesComponent extends BaseMapComponent {
public selectedTraceStart: LatLngAlt;
public selectedFeature: GeoJSON.Feature<GeoJSON.LineString>;
public missingCoordinates: LatLngAlt;
public missingParts: Immutable<GeoJSON.FeatureCollection<GeoJSON.LineString>>;
public missingParts: GeoJSON.FeatureCollection<GeoJSON.LineString>;
public selectedFeatureSource: GeoJSON.FeatureCollection<GeoJSON.LineString>;
public isConfigOpen: boolean;

Expand Down Expand Up @@ -95,7 +95,7 @@ export class TracesComponent extends BaseMapComponent {
});
this.missingParts$.subscribe(m => {
if (m != null) {
this.missingParts = m;
this.missingParts = structuredClone(m) as GeoJSON.FeatureCollection<GeoJSON.LineString>;
} else {
this.missingParts = {
type: "FeatureCollection",
Expand Down Expand Up @@ -130,6 +130,7 @@ export class TracesComponent extends BaseMapComponent {
public clearTrace() {
this.store.dispatch(new SetMissingPartsAction(null));
this.store.dispatch(new SetVisibleTraceAction(null));
this.clearSelection();
}

public async convertToRoute() {
Expand Down

0 comments on commit e0676b7

Please sign in to comment.