Skip to content

Commit

Permalink
fix: dashboard counts for different entity types work again (#2367)
Browse files Browse the repository at this point in the history
  • Loading branch information
sleidig authored Apr 26, 2024
1 parent 295a68d commit 62d852a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ describe("EntityCountDashboardComponent", () => {
it("should groupBy entity references and display an entity-block", async () => {
const testGroupBy = "child";
component.groupBy = testGroupBy;
component.entity = EducationalMaterial.ENTITY_TYPE;
component.entityType = EducationalMaterial.ENTITY_TYPE;

const c1 = new Child();
const x0 = new EducationalMaterial();
Expand Down Expand Up @@ -149,7 +149,7 @@ describe("EntityCountDashboardComponent", () => {
it("should groupBy arrays, split and summarized for individual array elements", async () => {
const testGroupBy = "children";
component.groupBy = testGroupBy;
component.entity = Note.ENTITY_TYPE;
component.entityType = Note.ENTITY_TYPE;

const x0 = new Note();
const x1 = new Note();
Expand Down Expand Up @@ -192,7 +192,7 @@ describe("EntityCountDashboardComponent", () => {
const entity = RecurringActivity;
entityMapper.addAll([ra1, ra2, ra3]);

component.entity = RecurringActivity.ENTITY_TYPE;
component.entityType = RecurringActivity.ENTITY_TYPE;
component.groupBy = "type";
component.ngOnInit();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class EntityCountDashboardComponent
* Entity name which should be grouped
* @param value
*/
@Input() set entity(value: string) {
@Input() set entityType(value: string) {
this._entity = this.entities.get(value);
}

Expand Down

0 comments on commit 62d852a

Please sign in to comment.