Skip to content

Commit

Permalink
Fixed object type title didn't load on page switch (#950)
Browse files Browse the repository at this point in the history
  • Loading branch information
sofiaIvarsRitense authored and mbritense committed May 16, 2024
1 parent 270caa0 commit 6318df5
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ export class ObjectListComponent {
readonly objectManagementId$: Observable<string> = this.route.params.pipe(
map(params => params.objectManagementId),
tap(objectManagementId => {
if (!this._settingPageTitle && objectManagementId) {
this._settingPageTitle = true;
if (objectManagementId) {
this.objectManagementService.getObjectById(objectManagementId).subscribe(objectType => {
if (objectType.title) {
this.pageTitleService.setCustomPageTitle(objectType.title);
Expand Down Expand Up @@ -234,8 +233,6 @@ export class ObjectListComponent {
})
);

private _settingPageTitle = false;

constructor(
private readonly objectService: ObjectService,
private readonly objectColumnService: ObjectColumnService,
Expand Down

0 comments on commit 6318df5

Please sign in to comment.