Skip to content

Commit

Permalink
Add final update on first params trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Vagram Airiian committed Feb 16, 2024
1 parent a342e4f commit 407d82b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions erdblick_app/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export class AppComponent {
searchValue: string = ""

leftTooltipItems: MenuItem[] | null = null;
firstParamUpdate: boolean = true;

constructor(private httpClient: HttpClient,
private router: Router,
Expand Down Expand Up @@ -254,6 +255,11 @@ export class AppComponent {
currentParameters.styles = currentStyles;
}
this.parametersService.parameters.next(currentParameters);

if (Object.keys(params).length && this.firstParamUpdate) {
this.mapService.mapModel.getValue()?.update();
this.firstParamUpdate = false;
}
});

this.parametersService.parameters.subscribe(parameters => {
Expand Down

0 comments on commit 407d82b

Please sign in to comment.