Skip to content

Commit

Permalink
fix: ensure loadedUnitRoles is public in global
Browse files Browse the repository at this point in the history
  • Loading branch information
jakerenzella committed Oct 5, 2022
1 parent 02aa41a commit b92159f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/projects/states/index/global-state.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class GlobalStateService implements OnDestroy {
/**
* The unit roles loaded from the server
*/
private loadedUnitRoles: EntityCache<UnitRole>;
public loadedUnitRoles: EntityCache<UnitRole>;

/**
* The loaded units.
Expand Down Expand Up @@ -163,6 +163,7 @@ export class GlobalStateService implements OnDestroy {
private loadUnitsAndProjects() {
this.unitRoleService.query().subscribe({
next: (unitRoles: UnitRole[]) => {
console.log(this.loadedUnitRoles);
// unit roles are now in the cache

this.projectService.query(undefined, { params: { include_inactive: false } }).subscribe({
Expand Down

0 comments on commit b92159f

Please sign in to comment.