Skip to content

Commit

Permalink
rename subject in team component
Browse files Browse the repository at this point in the history
  • Loading branch information
Vakmeth committed Oct 16, 2023
1 parent a5502cf commit d26a6fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/app/team/team.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { Objective } from '../shared/types/model/Objective';
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class TeamComponent {
private _overviewEntity = new BehaviorSubject<OverviewEntity>({} as OverviewEntity);
private overviewEntity$ = new BehaviorSubject<OverviewEntity>({} as OverviewEntity);

constructor(
private dialog: MatDialog,
Expand All @@ -23,11 +23,11 @@ export class TeamComponent {

@Input()
get overviewEntity(): BehaviorSubject<OverviewEntity> {
return this._overviewEntity;
return this.overviewEntity$;
}

set overviewEntity(overviewEntity: OverviewEntity) {
this._overviewEntity.next(overviewEntity);
this.overviewEntity$.next(overviewEntity);
}

createObjective() {
Expand Down

0 comments on commit d26a6fa

Please sign in to comment.